You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

query-registry

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

query-registry - npm Package Compare versions

Comparing version

to
3.0.0-1

20

dist/index.js

@@ -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

![Language](https://img.shields.io/github/languages/top/velut/query-registry)
[![npm bundle size](https://img.shields.io/bundlephobia/min/query-registry)](https://bundlephobia.com/result?p=query-registry)
[![npm](https://img.shields.io/npm/v/query-registry)](https://www.npmjs.com/package/query-registry)

@@ -10,0 +9,0 @@ [![License](https://img.shields.io/github/license/velut/query-registry)](https://github.com/velut/query-registry/blob/main/LICENSE)

Sorry, the diff of this file is too big to display