Skip to content

Commit

Permalink
Enable the esModuleInterop compiler flag and address compiler warnings (
Browse files Browse the repository at this point in the history
Azure#16)

* Enable the esModuleInterop compiler flag, address compiler warnings and bump version number

* Bump the package version and update the changelog
* Update tests to address the new compiler flag
  • Loading branch information
AlexGhiondea authored Jan 11, 2019
1 parent 32fe066 commit abe3e51
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 2019-1-11 1.0.0-preview.1
- Enabled esModuleInterop flag for the TypeScript compiler.

### 2018-12-15 0.1.9
- Added constants for rule and filter descriptors as defined in the [service bus docs](https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-amqp-request-response#rule-operations)

Expand Down
2 changes: 1 addition & 1 deletion lib/log.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

import * as debugModule from "debug";
import debugModule from "debug";
/**
* @ignore
* log statements for cbs
Expand Down
2 changes: 1 addition & 1 deletion lib/util/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

import * as AsyncLock from "async-lock";
import AsyncLock from "async-lock";
export { AsyncLock };
/**
* Describes the options that can be provided to create an async lock.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/amqp-common",
"version": "0.1.9",
"version": "1.0.0-preview.1",
"description": "Common library for amqp based azure sdks like @azure/event-hubs.",
"author": "Microsoft Corporation",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion tests/retry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
retry, translate, RetryConfig, RetryOperationType, Constants, delay, MessagingError
} from "../lib";
import * as chai from "chai";
import * as debugModule from "debug";
import debugModule from "debug";
const debug = debugModule("azure:amqp-common:retry-spec");
const should = chai.should();
import * as dotenv from "dotenv";
Expand Down
2 changes: 1 addition & 1 deletion tests/tokenProvider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import "mocha";
import * as chai from "chai";
chai.should();
import * as debugModule from "debug";
import debugModule from "debug";
const debug = debugModule("azure:amqp-common:token-spec");
import { SasTokenProvider, IotSasTokenProvider } from "../lib";

Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"noImplicitReturns": true,
"outDir": "dist",
"allowJs": false,
"esModuleInterop": true,
"noUnusedLocals":true,
"strict": true,
"declaration": true,
Expand Down

0 comments on commit abe3e51

Please sign in to comment.