@waiting/shared-core
Advanced tools
Comparing version 23.4.0 to 23.5.0
/** | ||
* @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
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
137962
2828
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Added@types/minimist@1.2.5(transitive)
+ Added@types/node@18.19.65(transitive)
+ Added@types/ps-tree@1.1.6(transitive)
+ Added@types/which@3.0.4(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedchalk@5.3.0(transitive)
+ Addeddata-uri-to-buffer@4.0.1(transitive)
+ Addeddir-glob@3.0.1(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfetch-blob@3.2.0(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedformdata-polyfill@4.0.10(transitive)
+ Addedfs-extra@11.2.0(transitive)
+ Addedfx@35.0.0(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedglobby@13.2.2(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addednode-domexception@1.0.0(transitive)
+ Addednode-fetch@3.3.1(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedps-tree@1.2.0(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedslash@4.0.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedundici-types@5.26.5(transitive)
+ Addeduniversalify@2.0.1(transitive)
+ Addedweb-streams-polyfill@3.3.3(transitive)
+ Addedwebpod@0.0.2(transitive)
+ Addedwhich@3.0.1(transitive)
+ Addedyaml@2.6.1(transitive)
+ Addedzx@7.2.3(transitive)
- Removed@types/node@22.9.3(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedzx@8.2.2(transitive)
Updatedzx@^7.2.3