query-registry
Advanced tools
Comparing version
@@ -131,5 +131,5 @@ // src/index.ts | ||
In some old packages (like `lodash@0.1.0`) the `engines` property is an array of strings | ||
instead of an object and with catch it becomes an empty object. | ||
instead of an object and with catch it becomes `undefined`. | ||
*/ | ||
engines: z3.record(z3.string()).catch({}).optional(), | ||
engines: z3.record(z3.string()).optional().catch(void 0), | ||
/** | ||
@@ -140,5 +140,5 @@ SPDX license expression or a custom license. | ||
In some old packages (like `eslint@0.0.6`) the `license` property is an object | ||
and with catch `license` becomes an empty string. | ||
and with catch `license` becomes `undefined`. | ||
*/ | ||
license: z3.string().catch("").optional(), | ||
license: z3.string().optional().catch(void 0), | ||
/** | ||
@@ -149,13 +149,13 @@ URL of the package's homepage. | ||
In some old packages (like `fs-extra@0.0.1`) the `homepage` property is an array | ||
of strings and with coercion it correctly becomes a string. | ||
of strings and with catch it becomes `undefined`. | ||
*/ | ||
homepage: z3.coerce.string().optional(), | ||
homepage: z3.string().optional().catch(void 0), | ||
/** | ||
Deprecation message. | ||
Deprecation status/message. | ||
@remarks | ||
In some old packages (like `react@16.14.0`) the `deprecated` property is a boolean | ||
and with coercion it becomes either `"true"` or `"false"`. | ||
In some packages (like `react@16.14.0`) the `deprecated` property is a boolean | ||
instead of a deprecation message. | ||
*/ | ||
deprecated: z3.coerce.string().optional() | ||
deprecated: z3.union([z3.string(), z3.boolean()]).optional() | ||
}); | ||
@@ -162,0 +162,0 @@ var getPackageManifest = async (name, versionOrTag = "latest", registry = npmRegistryUrl) => { |
{ | ||
"name": "query-registry", | ||
"version": "3.0.0-0", | ||
"version": "3.0.0-1", | ||
"description": "Query the npm registry for packuments, manifests, packages and download counts", | ||
@@ -51,3 +51,3 @@ "license": "MIT", | ||
"test": "vitest", | ||
"test:update-db": "bun run scripts/update-test-db.ts", | ||
"test:update-data": "bun run scripts/update-test-data.ts", | ||
"test:ci": "vitest run --coverage --bail 1", | ||
@@ -57,3 +57,3 @@ "lint": "prettier --check .", | ||
"pre-push": "bun install && bun run lint && bun run build && bun run test:ci && bun run attw", | ||
"release": "np" | ||
"release": "np --no-cleanup" | ||
}, | ||
@@ -65,4 +65,4 @@ "dependencies": { | ||
"validate-npm-package-name": "^5.0.0", | ||
"zod": "^3.22.5", | ||
"zod-package-json": "^1.0.1" | ||
"zod": "^3.23.3", | ||
"zod-package-json": "^1.0.2" | ||
}, | ||
@@ -69,0 +69,0 @@ "devDependencies": { |
@@ -7,3 +7,2 @@ # query-registry | ||
 | ||
[](https://bundlephobia.com/result?p=query-registry) | ||
[](https://www.npmjs.com/package/query-registry) | ||
@@ -10,0 +9,0 @@ [](https://github.com/velut/query-registry/blob/main/LICENSE) |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
269931
37.31%6183
32.8%1
-50%167
-0.6%Updated
Updated