Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@waiting/shared-core

Package Overview
Dependencies
Maintainers
1
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waiting/shared-core - npm Package Compare versions

Comparing version 21.6.1 to 22.0.0

6

dist/lib/npm-pkg.js
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 {

13

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc