Skip to content

Commit

Permalink
replace node-abort-controller and abort-controller with @azure/abort-…
Browse files Browse the repository at this point in the history
…controller (#5335)
  • Loading branch information
joheredi authored Oct 3, 2019
1 parent 84c932a commit eed5c32
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions sdk/cosmosdb/cosmos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@
"tsdocFlavor": "AEDoc"
},
"dependencies": {
"@azure/abort-controller": "1.0.0-preview.2",
"@azure/cosmos-sign": "^1.0.2",
"@types/debug": "^4.1.4",
"binary-search-bounds": "^2.0.3",
"crypto-hash": "^1.1.0",
"debug": "^4.1.1",
"fast-json-stable-stringify": "^2.0.0",
"node-abort-controller": "^1.0.3",
"node-fetch": "^2.6.0",
"priorityqueuejs": "^1.0.0",
"semaphore": "^1.0.5",
Expand All @@ -101,7 +101,6 @@
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/eslint-plugin-tslint": "~2.3.0",
"@typescript-eslint/parser": "^2.0.0",
"abort-controller": "^3.0.0",
"cross-env": "^5.2.0",
"dotenv": "^8.0.0",
"eslint": "^6.1.0",
Expand Down
4 changes: 2 additions & 2 deletions sdk/cosmosdb/cosmos/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default [
"universal-user-agent",
"uuid/v4",
"debug",
"node-abort-controller",
"@azure/abort-controller",
"node-fetch",
"atob",
"binary-search-bounds",
Expand All @@ -29,7 +29,7 @@ export default [
"crypto-hash": "cryptoHash",
"fast-json-stable-stringify": "stableStringify",
"uuid/v4": "uuid",
"node-abort-controller": "AbortController",
"@azure/abort-controller": "AbortController",
"node-fetch": "fetch",
tslib: "tslib_1",
debug: "debugLib",
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmosdb/cosmos/src/request/RequestHandler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import AbortController from "node-abort-controller";
import { AbortController } from "@azure/abort-controller";
import fetch, { RequestInit, Response } from "node-fetch";
import { trimSlashes } from "../common";
import { Constants } from "../common/constants";
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmosdb/cosmos/test/functional/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
generateDocuments,
bulkInsertItems
} from "../common/TestHelpers";
import { AbortController } from "abort-controller";
import { AbortController } from "@azure/abort-controller";

describe("NodeJS CRUD Tests", function() {
this.timeout(process.env.MOCHA_TIMEOUT || 20000);
Expand Down

0 comments on commit eed5c32

Please sign in to comment.