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 23.4.0 to 23.5.0

2

dist/lib/module.d.ts
/**
* @example genModuleAbsolutePathIfExists(genCurrentDirname(import.meta.url), 'node_modules/@mwcp/share')
*/
export declare function genModuleAbsolutePathIfExists(projectDir: string, modulePath: string): Promise<string>;
export declare function genModuleAbsolutePathIfExists(projectDir: string, modulePath: string): Promise<string | undefined>;
//# sourceMappingURL=module.d.ts.map

@@ -18,4 +18,3 @@ import { access } from 'node:fs/promises';

}
return '.';
}
//# sourceMappingURL=module.js.map

@@ -9,5 +9,8 @@ import assert from 'node:assert';

assert($, 'zx.$ empty');
const ps = pkgName.includes('@') ? '' : '--no-workspaces';
try {
$.verbose = false;
const { exitCode, stdout } = await $ `npm view ${name} --json --registry=${registry}`;
// const cmd = `npm view ${ps} ${name} --json --registry=${registry}`
// void cmd
const { exitCode, stdout } = await $ `npm view ${ps} ${name} --json --registry=${registry}`;
$.verbose = true;

@@ -14,0 +17,0 @@ if (exitCode === 0 && stdout) {

{
"name": "@waiting/shared-core",
"author": "waiting",
"version": "23.4.0",
"version": "23.5.0",
"description": "node core function re export with Promise or Observable",

@@ -36,3 +36,3 @@ "keywords": [

"semver": "^7.6.0",
"zx": "^8.0.1"
"zx": "^7.2.3"
},

@@ -80,3 +80,3 @@ "devDependencies": {

},
"gitHead": "ea85cf374d4f3e88b3c3ba32bdbd1b2e702f74b2"
"gitHead": "7a5a3d145b098cf45ac6196c253121c884b2e2f9"
}

@@ -9,3 +9,3 @@

*/
export async function genModuleAbsolutePathIfExists(projectDir: string, modulePath: string): Promise<string> {
export async function genModuleAbsolutePathIfExists(projectDir: string, modulePath: string): Promise<string | undefined> {
const moduleAbsolutePath = join(projectDir, modulePath)

@@ -24,3 +24,2 @@ const needle = join(moduleAbsolutePath, 'package.json')

}
return '.'
}

@@ -23,5 +23,9 @@ import assert from 'node:assert'

const ps = pkgName.includes('@') ? '' : '--no-workspaces'
try {
$.verbose = false
const { exitCode, stdout } = await $`npm view ${name} --json --registry=${registry}`
// const cmd = `npm view ${ps} ${name} --json --registry=${registry}`
// void cmd
const { exitCode, stdout } = await $`npm view ${ps} ${name} --json --registry=${registry}`
$.verbose = true

@@ -28,0 +32,0 @@ if (exitCode === 0 && stdout) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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