@azure/ai-text-analytics 5.2.0-alpha.20220107.1 → 5.2.0-alpha.20220303.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "client",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "An isomorphic client library for the Azure Text Analytics service.",
6
- "version": "5.2.0-alpha.20220107.1",
6
+ "version": "5.2.0-alpha.20220303.1",
7
7
  "keywords": [
8
8
  "node",
9
9
  "azure",
@@ -54,33 +54,30 @@
54
54
  "Azure Cognitive Services instance": "https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account"
55
55
  }
56
56
  },
57
- "browser": {
58
- "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
59
- },
60
57
  "scripts": {
61
58
  "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
62
- "build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
63
- "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1",
59
+ "build:browser": "tsc -p . && dev-tool run bundle",
60
+ "build:node": "tsc -p . && dev-tool run bundle",
64
61
  "build:samples": "echo Obsolete.",
65
- "build:test": "tsc -p . && rollup -c 2>&1",
66
- "build": "npm run clean && tsc -p . && rollup -c 2>&1 && api-extractor run --local",
67
- "build:debug": "tsc -p . && rollup -c 2>&1 && api-extractor run --local",
62
+ "build:test": "tsc -p . && dev-tool run bundle",
63
+ "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local",
64
+ "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local",
68
65
  "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
69
66
  "clean": "rimraf dist dist-* temp types *.tgz *.log",
70
67
  "execute:samples": "dev-tool samples run samples-dev",
71
68
  "extract-api": "tsc -p . && api-extractor run --local",
72
69
  "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
73
- "integration-test:browser": "karma start --single-run",
74
- "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/{,!(browser)/**/}*.spec.js\"",
70
+ "integration-test:browser": "dev-tool run test:browser",
71
+ "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"",
75
72
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
76
- "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
77
- "lint": "eslint package.json api-extractor.json src test --ext .ts",
73
+ "lint:fix": "eslint README.md package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
74
+ "lint": "eslint README.md package.json api-extractor.json src test",
78
75
  "pack": "npm pack 2>&1",
79
76
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
80
77
  "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
81
78
  "test": "npm run clean && npm run build:test && npm run unit-test",
82
- "unit-test:browser": "karma start --single-run",
83
- "unit-test:node": "mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"",
79
+ "unit-test:browser": "dev-tool run test:browser",
80
+ "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 \"test/**/*.spec.ts\"",
84
81
  "unit-test": "npm run unit-test:node && npm run unit-test:browser"
85
82
  },
86
83
  "sideEffects": false,
@@ -100,7 +97,8 @@
100
97
  "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
101
98
  "@azure/identity": "^2.0.1",
102
99
  "@azure/test-utils": ">=1.0.0-alpha <1.0.0-alphb",
103
- "@azure-tools/test-recorder": "^1.0.0",
100
+ "@azure-tools/test-recorder": ">=2.0.0-alpha <2.0.0-alphb",
101
+ "@azure-tools/test-credential": ">=1.0.0-alpha <1.0.0-alphb",
104
102
  "@microsoft/api-extractor": "^7.18.11",
105
103
  "@types/chai": "^4.1.6",
106
104
  "@types/chai-as-promised": "^7.1.0",
@@ -119,8 +117,6 @@
119
117
  "karma-env-preprocessor": "^0.1.1",
120
118
  "karma-firefox-launcher": "^1.1.0",
121
119
  "karma-ie-launcher": "^1.0.0",
122
- "karma-json-preprocessor": "^0.3.3",
123
- "karma-json-to-file-reporter": "^1.0.1",
124
120
  "karma-junit-reporter": "^2.0.1",
125
121
  "karma-mocha": "^2.0.1",
126
122
  "karma-mocha-reporter": "^2.2.5",
@@ -131,7 +127,6 @@
131
127
  "nyc": "^15.0.0",
132
128
  "prettier": "^2.5.1",
133
129
  "rimraf": "^3.0.0",
134
- "rollup": "^1.16.3",
135
130
  "sinon": "^9.0.2",
136
131
  "source-map-support": "^0.5.9",
137
132
  "ts-node": "^10.0.0",