@vercel/cosmosdb-server
Advanced tools
Comparing version 0.14.0 to 0.15.0
@@ -0,1 +1,5 @@ | ||
export interface CompositeIndex { | ||
path: string; | ||
order?: "ascending" | "descending"; | ||
} | ||
interface ItemObject { | ||
@@ -21,6 +25,2 @@ id: string; | ||
} | ||
export interface CompositeIndex { | ||
path: string; | ||
order?: "ascending" | "descending"; | ||
} | ||
export default ItemObject; |
"use strict"; | ||
/* eslint-disable no-underscore-dangle */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -7,5 +7,5 @@ "use strict"; | ||
/* eslint-disable class-methods-use-this, no-underscore-dangle, no-use-before-define */ | ||
const crypto_1 = require("crypto"); | ||
const cosmosdb_query_1 = __importDefault(require("@zeit/cosmosdb-query")); | ||
const lru_cache_1 = __importDefault(require("lru-cache")); | ||
const v4_1 = __importDefault(require("uuid/v4")); | ||
const get_value_1 = __importDefault(require("../utils/get-value")); | ||
@@ -41,3 +41,3 @@ function ts() { | ||
id: data.id, | ||
_etag: (0, v4_1.default)(), | ||
_etag: (0, crypto_1.randomUUID)(), | ||
_rid, | ||
@@ -133,3 +133,3 @@ _self: this._self(_rid), | ||
id: data.id, | ||
_etag: (0, v4_1.default)(), | ||
_etag: (0, crypto_1.randomUUID)(), | ||
_rid, | ||
@@ -136,0 +136,0 @@ _self, |
@@ -34,3 +34,3 @@ "use strict"; | ||
const path_1 = require("path"); | ||
const v4_1 = __importDefault(require("uuid/v4")); | ||
const crypto_1 = require("crypto"); | ||
const account_1 = __importDefault(require("./account")); | ||
@@ -67,3 +67,3 @@ const routes_1 = __importDefault(require("./routes")); | ||
res.setHeader("connection", keepAlive ? "keep-alive" : "close"); | ||
res.setHeader("x-ms-activity-id", (0, v4_1.default)()); | ||
res.setHeader("x-ms-activity-id", (0, crypto_1.randomUUID)()); | ||
res.setHeader("x-ms-request-charge", "1"); | ||
@@ -70,0 +70,0 @@ if (req.headers["x-ms-documentdb-populatequerymetrics"]) { |
{ | ||
"name": "@vercel/cosmosdb-server", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "A Cosmos DB server implementation", | ||
@@ -24,4 +24,4 @@ "license": "MIT", | ||
"prepublishOnly": "yarn build", | ||
"test": "yarn test-base && yarn test-sdk", | ||
"test-base": "best -I test/index.ts -r ts-node/register --verbose", | ||
"test": "yarn test-code && yarn test-sdk", | ||
"test-code": "NODE_TLS_REJECT_UNAUTHORIZED=0 jest", | ||
"test-sdk": "./test/sdk.sh" | ||
@@ -35,22 +35,22 @@ }, | ||
"path-to-regexp": "3.1.0", | ||
"raw-body": "2.4.1", | ||
"uuid": "3.3.3" | ||
"raw-body": "2.4.1" | ||
}, | ||
"devDependencies": { | ||
"@azure/cosmos": "3.10.2", | ||
"@babel/core": "7.6.2", | ||
"@types/jest": "^29.5.1", | ||
"@types/lru-cache": "5.1.0", | ||
"@types/node": "^16.0.0", | ||
"@types/uuid": "3.4.5", | ||
"@typescript-eslint/eslint-plugin": "3.10.1", | ||
"@typescript-eslint/parser": "3.10.1", | ||
"@zeit/best": "0.5.3", | ||
"@typescript-eslint/eslint-plugin": "5.59.6", | ||
"@typescript-eslint/parser": "5.59.6", | ||
"@zeit/git-hooks": "0.1.4", | ||
"eslint": "6.5.1", | ||
"eslint-config-airbnb": "18.0.1", | ||
"eslint-config-prettier": "6.3.0", | ||
"eslint-plugin-import": "2.18.2", | ||
"eslint-plugin-jsx-a11y": "6.2.3", | ||
"eslint-plugin-react": "7.15.1", | ||
"eslint": "8.35.0", | ||
"eslint-config-airbnb": "19.0.4", | ||
"eslint-config-prettier": "8.8.0", | ||
"eslint-plugin-import": "2.27.5", | ||
"eslint-plugin-jest": "^27.2.1", | ||
"eslint-plugin-jsx-a11y": "6.7.1", | ||
"eslint-plugin-react": "7.32.2", | ||
"jest": "^29.5.0", | ||
"prettier": "1.18.2", | ||
"ts-jest": "^29.1.0", | ||
"ts-node": "8.4.1", | ||
@@ -64,2 +64,5 @@ "typescript": "4.9.5" | ||
], | ||
"env": { | ||
"jest/globals": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
@@ -70,5 +73,7 @@ "parserOptions": { | ||
"plugins": [ | ||
"@typescript-eslint" | ||
"@typescript-eslint", | ||
"jest" | ||
], | ||
"rules": { | ||
"import/extensions": "off", | ||
"no-unused-vars": "off", | ||
@@ -103,3 +108,6 @@ "no-underscore-dangle": [ | ||
] | ||
}, | ||
"engines": { | ||
"node": ">=14.17" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116912
6
19
2842
4
- Removeduuid@3.3.3
- Removeduuid@3.3.3(transitive)