forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 15118 in Azure/azure-rest-api-specs
Merge 4894edb8349155c2c7f6677eee57c09c9b94f389 into e0b9ed9e1913aa30da29062715bc14bd38113776
- Loading branch information
SDKAuto
committed
Jul 13, 2021
1 parent
eb5b44c
commit 2fc4a53
Showing
10 changed files
with
11,478 additions
and
639 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2021 Microsoft | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,151 +1,59 @@ | ||
{ | ||
"name": "@azure/eventgrid", | ||
"sdk-type": "client", | ||
"author": "Microsoft Corporation", | ||
"description": "An isomorphic client library for the Azure Event Grid service.", | ||
"description": "EventGridClient Library with typescript type definitions for node.js and browser.", | ||
"version": "4.4.0", | ||
"dependencies": { | ||
"@azure/ms-rest-azure-js": "^2.1.0", | ||
"@azure/ms-rest-js": "^2.2.0", | ||
"@azure/core-auth": "^1.1.4", | ||
"tslib": "^1.10.0" | ||
}, | ||
"keywords": [ | ||
"node", | ||
"azure", | ||
"typescript", | ||
"browser", | ||
"isomorphic", | ||
"cloud" | ||
"isomorphic" | ||
], | ||
"license": "MIT", | ||
"main": "./dist/index.js", | ||
"module": "./dist-esm/src/index.js", | ||
"types": "./types/eventgrid.d.ts", | ||
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/eventgrid/README.md", | ||
"repository": "github:Azure/azure-sdk-for-js", | ||
"main": "./dist/eventgrid.js", | ||
"module": "./esm/eventGridClient.js", | ||
"types": "./esm/eventGridClient.d.ts", | ||
"devDependencies": { | ||
"typescript": "^3.6.0", | ||
"rollup": "^1.18.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"uglify-js": "^3.6.0" | ||
}, | ||
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/eventgrid/eventgrid", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Azure/azure-sdk-for-js.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/Azure/azure-sdk-for-js/issues" | ||
}, | ||
"engines": { | ||
"node": ">=12.0.0" | ||
}, | ||
"files": [ | ||
"dist/", | ||
"dist-esm/src/", | ||
"types/eventgrid.d.ts", | ||
"dist/**/*.js", | ||
"dist/**/*.js.map", | ||
"dist/**/*.d.ts", | ||
"dist/**/*.d.ts.map", | ||
"esm/**/*.js", | ||
"esm/**/*.js.map", | ||
"esm/**/*.d.ts", | ||
"esm/**/*.d.ts.map", | ||
"src/**/*.ts", | ||
"README.md", | ||
"LICENSE" | ||
"rollup.config.js", | ||
"tsconfig.json" | ||
], | ||
"//sampleConfiguration": { | ||
"productName": "Azure Event Grid", | ||
"productSlugs": [ | ||
"azure", | ||
"azure-event-grid" | ||
], | ||
"requiredResources": { | ||
"Azure Event Grid Custom Topic, configured to use the Event Grid Schema": "https://docs.microsoft.com/azure/event-grid/scripts/event-grid-cli-create-custom-topic", | ||
"Azure Event Grid Custom Topic, configured to use the Cloud Event 1.0 Schema": "https://docs.microsoft.com/azure/event-grid/scripts/event-grid-cli-create-custom-topic", | ||
"Azure Service Bus Queue": "https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quickstart-portal" | ||
} | ||
}, | ||
"//metadata": { | ||
"constantPaths": [ | ||
{ | ||
"path": "swagger/README.md", | ||
"prefix": "package-version" | ||
}, | ||
{ | ||
"path": "src/constants.ts", | ||
"prefix": "SDK_VERSION" | ||
} | ||
] | ||
}, | ||
"browser": { | ||
"./dist-esm/src/cryptoHelpers.js": "./dist-esm/src/cryptoHelpers.browser.js" | ||
}, | ||
"scripts": { | ||
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", | ||
"build:autorest": "autorest ./swagger/README.md --typescript --v3 && node ./scripts/setPathToEmpty.js", | ||
"build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1", | ||
"build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1", | ||
"build:samples": "echo Obsolete", | ||
"build:test": "tsc -p . && rollup -c rollup.test.config.js 2>&1", | ||
"build": "tsc -p . && rollup -c 2>&1 && api-extractor run --local", | ||
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", | ||
"clean": "rimraf dist dist-browser dist-esm dist-test temp types *.tgz *.log", | ||
"execute:samples": "dev-tool samples run samples-dev", | ||
"extract-api": "tsc -p . && api-extractor run --local", | ||
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", | ||
"integration-test:browser": "karma start --single-run", | ||
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/**/*.spec.js\"", | ||
"integration-test": "npm run integration-test:node && npm run integration-test:browser", | ||
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", | ||
"lint": "eslint package.json api-extractor.json src test --ext .ts", | ||
"pack": "npm pack 2>&1", | ||
"prebuild": "npm run clean", | ||
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser", | ||
"test:node": "npm run clean && npm run build:test && npm run unit-test:node", | ||
"test": "npm run clean && npm run build:test && npm run unit-test", | ||
"unit-test:browser": "karma start --single-run", | ||
"unit-test:node": "mocha --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"dist-test/index.node.js\"", | ||
"unit-test": "npm run unit-test:node && npm run unit-test:browser", | ||
"docs": "typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src" | ||
"build": "tsc && rollup -c rollup.config.js && npm run minify", | ||
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/eventgrid.js.map'\" -o ./dist/eventgrid.min.js ./dist/eventgrid.js", | ||
"prepack": "npm install && npm run build" | ||
}, | ||
"sideEffects": false, | ||
"autoPublish": false, | ||
"dependencies": { | ||
"@azure/core-auth": "^1.3.0", | ||
"@azure/core-client": "^1.0.0", | ||
"@azure/core-rest-pipeline": "^1.1.0", | ||
"@azure/core-tracing": "1.0.0-preview.12", | ||
"@azure/logger": "^1.0.0", | ||
"tslib": "^2.2.0", | ||
"uuid": "^8.3.0" | ||
}, | ||
"devDependencies": { | ||
"@azure/dev-tool": "^1.0.0", | ||
"@azure/eslint-plugin-azure-sdk": "^3.0.0", | ||
"@azure/service-bus": "^7.0.0", | ||
"@azure/test-utils-recorder": "^1.0.0", | ||
"@microsoft/api-extractor": "7.7.11", | ||
"@rollup/plugin-commonjs": "11.0.2", | ||
"@rollup/plugin-json": "^4.0.0", | ||
"@rollup/plugin-multi-entry": "^3.0.0", | ||
"@rollup/plugin-node-resolve": "^8.0.0", | ||
"@rollup/plugin-replace": "^2.2.0", | ||
"@types/chai": "^4.1.6", | ||
"@types/chai-as-promised": "^7.1.0", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^12.0.0", | ||
"@types/sinon": "^9.0.4", | ||
"@types/uuid": "^8.0.0", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"cross-env": "^7.0.2", | ||
"dotenv": "^8.2.0", | ||
"eslint": "^7.15.0", | ||
"karma": "^6.2.0", | ||
"karma-chrome-launcher": "^3.0.0", | ||
"karma-coverage": "^2.0.0", | ||
"karma-edge-launcher": "^0.4.2", | ||
"karma-env-preprocessor": "^0.1.1", | ||
"karma-firefox-launcher": "^1.1.0", | ||
"karma-ie-launcher": "^1.0.0", | ||
"karma-json-preprocessor": "^0.3.3", | ||
"karma-json-to-file-reporter": "^1.0.1", | ||
"karma-junit-reporter": "^2.0.1", | ||
"karma-mocha": "^2.0.1", | ||
"karma-mocha-reporter": "^2.2.5", | ||
"karma-sourcemap-loader": "^0.3.8", | ||
"mocha": "^7.1.1", | ||
"mocha-junit-reporter": "^1.18.0", | ||
"nyc": "^14.0.0", | ||
"prettier": "^1.16.4", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^1.16.3", | ||
"rollup-plugin-shim": "^1.0.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-terser": "^5.1.1", | ||
"rollup-plugin-visualizer": "^4.0.4", | ||
"sinon": "^9.0.2", | ||
"source-map-support": "^0.5.9", | ||
"ts-node": "^9.0.0", | ||
"typescript": "~4.2.0", | ||
"typedoc": "0.15.2" | ||
} | ||
"autoPublish": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,37 @@ | ||
import * as base from "./rollup.base.config"; | ||
import rollup from "rollup"; | ||
import nodeResolve from "rollup-plugin-node-resolve"; | ||
import sourcemaps from "rollup-plugin-sourcemaps"; | ||
|
||
const inputs = []; | ||
/** | ||
* @type {rollup.RollupFileOptions} | ||
*/ | ||
const config = { | ||
input: "./esm/eventGridClient.js", | ||
external: [ | ||
"@azure/ms-rest-js", | ||
"@azure/ms-rest-azure-js" | ||
], | ||
output: { | ||
file: "./dist/eventgrid.js", | ||
format: "umd", | ||
name: "Azure.Eventgrid", | ||
sourcemap: true, | ||
globals: { | ||
"@azure/ms-rest-js": "msRest", | ||
"@azure/ms-rest-azure-js": "msRestAzure" | ||
}, | ||
banner: `/* | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/` | ||
}, | ||
plugins: [ | ||
nodeResolve({ mainFields: ['module', 'main'] }), | ||
sourcemaps() | ||
] | ||
}; | ||
|
||
if (!process.env.ONLY_BROWSER) { | ||
inputs.push(base.nodeConfig()); | ||
} | ||
|
||
if (!process.env.ONLY_NODE) { | ||
inputs.push(base.browserConfig()); | ||
inputs.push(base.browserConfig(false, true)); | ||
} | ||
|
||
export default inputs; | ||
export default config; |
Oops, something went wrong.