@waiting/shared-core
Advanced tools
Comparing version 21.6.1 to 22.0.0
import assert from 'node:assert'; | ||
let $; | ||
import { $ } from 'zx'; | ||
export async function getNpmPkgViewFromRegistry(pkgName, version = 'latest', registry = 'https://registry.npmjs.org') { | ||
@@ -8,6 +8,2 @@ assert(pkgName, 'pkgName empty'); | ||
const name = `${pkgName}@${version}`; | ||
if (!$) { | ||
// zx is pure ESM module and cannot via require(), so use dynamic import for bundler cjs | ||
$ = await import('zx').then(mod => mod.$); | ||
} | ||
assert($, 'zx.$ empty'); | ||
@@ -14,0 +10,0 @@ try { |
{ | ||
"name": "@waiting/shared-core", | ||
"author": "waiting", | ||
"version": "21.6.1", | ||
"version": "22.0.0", | ||
"description": "node core function re export with Promise or Observable", | ||
@@ -20,6 +20,3 @@ "keywords": [ | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
}, | ||
".": "./dist/index.js", | ||
"./package.json": "./package.json" | ||
@@ -37,3 +34,3 @@ }, | ||
"dependencies": { | ||
"@waiting/shared-types": "^21.6.1", | ||
"@waiting/shared-types": "^22.0.0", | ||
"minimist": "^1.2.8", | ||
@@ -68,3 +65,3 @@ "rxjs": "^7.8.0", | ||
"scripts": { | ||
"build": "npm run tsc && tsc-alias && npm run rp", | ||
"build": "npm run tsc && tsc-alias", | ||
"clean": "npm run clean:lock && npm run clean:dist && npm run clean:log", | ||
@@ -82,3 +79,3 @@ "clean:cache": "rm -rf .eslintcache .tsbuildinfo", | ||
}, | ||
"gitHead": "be7bd4f4c7b4267c57ef98bb663d361df358bcc5" | ||
"gitHead": "52f304b67139fe3615c7e8f324988815d744504f" | ||
} |
import assert from 'node:assert' | ||
import type { NpmPkgView } from '@waiting/shared-types' | ||
import { Shell, Options } from 'zx' | ||
import { $ } from 'zx' | ||
let $: (Shell & Options) | undefined | ||
export type { NpmPkgView } | ||
@@ -23,6 +21,2 @@ | ||
if (! $) { | ||
// zx is pure ESM module and cannot via require(), so use dynamic import for bundler cjs | ||
$ = await import('zx').then(mod => mod.$) | ||
} | ||
assert($, 'zx.$ empty') | ||
@@ -29,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
7
130544
105
2689
+ Added@waiting/shared-types@22.0.0(transitive)
- Removed@waiting/shared-types@21.6.1(transitive)