1 | {
|
2 | "name": "@azure/cosmos",
|
3 | "version": "4.2.0",
|
4 | "description": "Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API",
|
5 | "sdk-type": "client",
|
6 | "keywords": [
|
7 | "cosmosdb",
|
8 | "cosmos db",
|
9 | "documentdb",
|
10 | "document database",
|
11 | "azure",
|
12 | "nosql",
|
13 | "database",
|
14 | "cloud",
|
15 | "azure"
|
16 | ],
|
17 | "author": "Microsoft Corporation",
|
18 | "main": "./dist/index.js",
|
19 | "module": "./dist-esm/src/index.js",
|
20 | "react-native": "./dist-esm/src/index.js",
|
21 | "browser": {
|
22 | "./dist-esm/src/request/defaultAgent.js": "./dist-esm/src/request/defaultAgent.browser.js",
|
23 | "./dist-esm/src/utils/atob.js": "./dist-esm/src/utils/atob.browser.js",
|
24 | "./dist-esm/src/utils/digest.js": "./dist-esm/src/utils/digest.browser.js",
|
25 | "./dist-esm/src/utils/hmac.js": "./dist-esm/src/utils/hmac.browser.js",
|
26 | "./dist-esm/src/utils/envUtils.js": "./dist-esm/src/utils/envUtils.browser.js"
|
27 | },
|
28 | "files": [
|
29 | "changelog.md",
|
30 | "dist/",
|
31 | "dist-esm/src/",
|
32 | "README.md",
|
33 | "LICENSE"
|
34 | ],
|
35 | "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/cosmos/README.md",
|
36 | "sideEffects": false,
|
37 | "//metadata": {
|
38 | "constantPaths": [
|
39 | {
|
40 | "path": "src/common/constants.ts",
|
41 | "prefix": "SDKVersion"
|
42 | }
|
43 | ]
|
44 | },
|
45 | "types": "./dist/types/latest/cosmos.d.ts",
|
46 | "engines": {
|
47 | "node": ">=18.0.0"
|
48 | },
|
49 | "scripts": {
|
50 | "build": "npm run clean && npm run extract-api && npm run bundle",
|
51 | "build:samples": "echo Obsolete.",
|
52 | "build:src": "echo Using TypeScript && tsc --version && tsc -b --pretty",
|
53 | "build:test": "tsc",
|
54 | "bundle": "dev-tool run bundle",
|
55 | "bundle-types": "node bundle-types.js",
|
56 | "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
57 | "check:src:strict": "tsc --pretty --project tsconfig.strict.json",
|
58 | "clean": "dev-tool run vendored rimraf --glob dist dist-esm temp types *.tgz *.html *.log *.tsbuildinfo test/**/*.{js,js.map,d.ts}",
|
59 | "execute:samples": "dev-tool samples run samples-dev",
|
60 | "extract-api": "npm run check:src:strict && npm run build:src && dev-tool run extract-api",
|
61 | "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
62 | "integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
63 | "integration-test:browser": "echo skipped",
|
64 | "integration-test:node": "dev-tool run vendored cross-env NODE_OPTIONS='--dns-result-order=ipv4first' mocha -r test/mocha.env.ts -r ts-node/register -r dotenv/config -r ./test/public/common/setup.ts --reporter ../../../common/tools/mocha-multi-reporter.js --reporter-option output=test-results.xml \"./test/internal/**/*.spec.ts\" \"./test/public/**/*.spec.ts\" --timeout 100000",
|
65 | "lint": "eslint package.json api-extractor.json src test",
|
66 | "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
|
67 | "pack": "npm pack 2>&1",
|
68 | "test": "npm run unit-test && npm run integration-test",
|
69 | "test-consumer": "dev-tool run vendored rimraf consumer-test/node_modules consumer-test/package-lock.json && node consumer-test.js 2>&1",
|
70 | "test:browser": "npm run unit-test:browser && npm run integration-test:browser",
|
71 | "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node",
|
72 | "test:signoff": "npm run integration-test:node -- --fgrep \"nosignoff\" --invert",
|
73 | "unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
74 | "unit-test:browser": "echo skipped",
|
75 | "unit-test:node": "echo skipped",
|
76 | "update-snippets": "echo skipped"
|
77 | },
|
78 | "repository": "github:Azure/azure-sdk-for-js",
|
79 | "license": "MIT",
|
80 | "bugs": {
|
81 | "url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
82 | },
|
83 | "tsdoc": {
|
84 | "tsdocFlavor": "AEDoc"
|
85 | },
|
86 | "dependencies": {
|
87 | "@azure/abort-controller": "^2.0.0",
|
88 | "@azure/core-auth": "^1.7.1",
|
89 | "@azure/core-rest-pipeline": "^1.15.1",
|
90 | "@azure/core-tracing": "^1.1.1",
|
91 | "@azure/core-util": "^1.8.1",
|
92 | "fast-json-stable-stringify": "^2.1.0",
|
93 | "jsbi": "^4.3.0",
|
94 | "priorityqueuejs": "^2.0.0",
|
95 | "semaphore": "^1.1.0",
|
96 | "tslib": "^2.6.2"
|
97 | },
|
98 | "devDependencies": {
|
99 | "@azure/dev-tool": "^1.0.0",
|
100 | "@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
101 | "@azure/identity": "^4.0.1",
|
102 | "@azure/logger": "^1.0.0",
|
103 | "@sinonjs/fake-timers": "^11.0.0",
|
104 | "@types/chai": "~4.3.6",
|
105 | "@types/debug": "^4.1.4",
|
106 | "@types/mocha": "^10.0.0",
|
107 | "@types/node": "^18.0.0",
|
108 | "@types/priorityqueuejs": "^1.0.1",
|
109 | "@types/semaphore": "^1.1.0",
|
110 | "@types/sinon": "^17.0.0",
|
111 | "@types/sinonjs__fake-timers": "~8.1.2",
|
112 | "@types/underscore": "^1.8.8",
|
113 | "chai": "~4.3.8",
|
114 | "dotenv": "^16.0.0",
|
115 | "eslint": "^9.9.0",
|
116 | "execa": "^5.0.0",
|
117 | "mocha": "^10.0.0",
|
118 | "nock": "^13.5.4",
|
119 | "requirejs": "^2.3.5",
|
120 | "sinon": "^17.0.0",
|
121 | "source-map-support": "^0.5.9",
|
122 | "ts-node": "^10.0.0",
|
123 | "typescript": "~5.6.2"
|
124 | },
|
125 | "//sampleConfiguration": {
|
126 | "skip": [
|
127 | "EntraAuth.ts",
|
128 | "AlterQueryThroughput.ts",
|
129 | "Bulk.ts",
|
130 | "BulkUpdateWithSproc.ts",
|
131 | "ChangeFeed.ts",
|
132 | "ContainerManagement.ts",
|
133 | "ItemManagement.ts",
|
134 | "IndexManagement.ts",
|
135 | "DatabaseManagement.ts",
|
136 | "QueryThroughput.ts",
|
137 | "SasTokenAuth.ts",
|
138 | "ServerSideScripts.ts",
|
139 | "handleError.ts",
|
140 | "ChangeFeedHierarchicalPartitionKey.ts",
|
141 | "ChangeFeedIteratorLatestVersion.ts",
|
142 | "ChangeFeedIteratorAllVersionsAndDeletes.ts",
|
143 | "Diagnostics.ts",
|
144 | "HierarchicalPartitioning.ts",
|
145 | "FullTextSearch.ts"
|
146 | ],
|
147 | "productName": "Azure Cosmos DB",
|
148 | "productSlugs": [
|
149 | "azure-cosmos-db"
|
150 | ],
|
151 | "requiredResources": {
|
152 | "Azure Cosmos DB account": "https://docs.microsoft.com/azure/cosmos-db/how-to-manage-database-account#create-an-account"
|
153 | },
|
154 | "extraFiles": {
|
155 | "./samples-dev/Data/Families.json": [
|
156 | "typescript/src/Data/Families.json",
|
157 | "javascript/Data/Families.json"
|
158 | ]
|
159 | }
|
160 | }
|
161 | }
|