@socketsecurity/lib 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/abort.js.map +2 -2
- package/dist/argv/parse.js.map +2 -2
- package/dist/bin.js +1 -4
- package/dist/bin.js.map +2 -2
- package/dist/cacache.d.ts +0 -2
- package/dist/cacache.js +0 -1
- package/dist/cacache.js.map +2 -2
- package/dist/cache-with-ttl.js.map +2 -2
- package/dist/dlx.js.map +2 -2
- package/dist/external/@yarnpkg/extensions.d.ts +0 -1
- package/dist/external/cacache.d.ts +0 -7
- package/dist/external/debug.d.ts +0 -3
- package/dist/external/fast-sort.d.ts +0 -1
- package/dist/external/libnpmpack.d.ts +0 -1
- package/dist/external/make-fetch-happen.d.ts +0 -1
- package/dist/external/pacote.d.ts +0 -5
- package/dist/external/semver.d.ts +0 -1
- package/dist/external/validate-npm-package-name.js +1 -1
- package/dist/external/yargs-parser.d.ts +0 -1
- package/dist/external/yoctocolors-cjs.js +1 -1
- package/dist/external/zod.js +9 -9
- package/dist/logger.d.ts +1 -3
- package/dist/logger.js +1 -5
- package/dist/logger.js.map +2 -2
- package/dist/promises.d.ts +1 -1
- package/dist/promises.js +3 -0
- package/dist/promises.js.map +2 -2
- package/dist/signal-exit.js.map +2 -2
- package/dist/sorts.js.map +2 -2
- package/dist/spawn.d.ts +3 -21
- package/dist/spawn.js.map +2 -2
- package/dist/spinner.js.map +2 -2
- package/dist/suppress-warnings.js.map +2 -2
- package/dist/validation/types.d.ts +0 -4
- package/dist/validation/types.js.map +1 -1
- package/package.json +5 -3
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
declare class RegistryFetcher {
|
|
2
|
-
// biome-ignore lint/suspicious/noExplicitAny: External third-party type definition
|
|
3
2
|
constructor(spec: string, opts?: any)
|
|
4
3
|
cache: string
|
|
5
4
|
}
|
|
6
5
|
|
|
7
6
|
declare const pacote: {
|
|
8
7
|
RegistryFetcher: typeof RegistryFetcher
|
|
9
|
-
// biome-ignore lint/suspicious/noExplicitAny: External third-party type definition
|
|
10
8
|
extract(spec: string, dest: string, opts?: any): Promise<any>
|
|
11
|
-
// biome-ignore lint/suspicious/noExplicitAny: External third-party type definition
|
|
12
9
|
manifest(spec: string, opts?: any): Promise<any>
|
|
13
|
-
// biome-ignore lint/suspicious/noExplicitAny: External third-party type definition
|
|
14
10
|
packument(spec: string, opts?: any): Promise<any>
|
|
15
|
-
// biome-ignore lint/suspicious/noExplicitAny: External third-party type definition
|
|
16
11
|
tarball(spec: string, opts?: any): Promise<Buffer>
|
|
17
12
|
}
|
|
18
13
|
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Bundled from validate-npm-package-name
|
|
3
3
|
* This is a zero-dependency bundle created by esbuild.
|
|
4
4
|
*/
|
|
5
|
-
var
|
|
5
|
+
"use strict";var l=Object.defineProperty;var o=(n,t)=>l(n,"name",{value:t,configurable:!0});var{builtinModules:u}=require("module"),h=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),f=["node_modules","favicon.ico"];function p(n){var t=[],e=[];if(n===null)return e.push("name cannot be null"),r(t,e);if(n===void 0)return e.push("name cannot be undefined"),r(t,e);if(typeof n!="string")return e.push("name must be a string"),r(t,e);if(n.length||e.push("name length must be greater than zero"),n.startsWith(".")&&e.push("name cannot start with a period"),n.match(/^_/)&&e.push("name cannot start with an underscore"),n.trim()!==n&&e.push("name cannot contain leading or trailing spaces"),f.forEach(function(c){n.toLowerCase()===c&&e.push(c+" is not a valid package name")}),u.includes(n.toLowerCase())&&t.push(n+" is a core module name"),n.length>214&&t.push("name can no longer contain more than 214 characters"),n.toLowerCase()!==n&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(n.split("/").slice(-1)[0])&&t.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(n)!==n){var a=n.match(h);if(a){var s=a[1],i=a[2];if(i.startsWith(".")&&e.push("name cannot start with a period"),encodeURIComponent(s)===s&&encodeURIComponent(i)===i)return r(t,e)}e.push("name can only contain URL-friendly characters")}return r(t,e)}o(p,"validate");var r=o(function(n,t){var e={validForNewPackages:t.length===0&&n.length===0,validForOldPackages:t.length===0,warnings:n,errors:t};return e.warnings.length||delete e.warnings,e.errors.length||delete e.errors,e},"done");module.exports=p;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Bundled from yoctocolors-cjs
|
|
3
3
|
* This is a zero-dependency bundle created by esbuild.
|
|
4
4
|
*/
|
|
5
|
-
var
|
|
5
|
+
var c=Object.defineProperty;var b=(o,i)=>c(o,"name",{value:i,configurable:!0});var d=require("node:tty"),u=d?.WriteStream?.prototype?.hasColors?.()??!1,t=b((o,i)=>{if(!u)return h=>h;let s=`\x1B[${o}m`,r=`\x1B[${i}m`;return h=>{let n=h+"",g=n.indexOf(r);if(g===-1)return s+n+r;let a=s,l=0,B=(i===22?r:"")+s;for(;g!==-1;)a+=n.slice(l,g)+B,l=g+r.length,g=n.indexOf(r,l);return a+=n.slice(l)+r,a}},"format"),e={};e.reset=t(0,0);e.bold=t(1,22);e.dim=t(2,22);e.italic=t(3,23);e.underline=t(4,24);e.overline=t(53,55);e.inverse=t(7,27);e.hidden=t(8,28);e.strikethrough=t(9,29);e.black=t(30,39);e.red=t(31,39);e.green=t(32,39);e.yellow=t(33,39);e.blue=t(34,39);e.magenta=t(35,39);e.cyan=t(36,39);e.white=t(37,39);e.gray=t(90,39);e.bgBlack=t(40,49);e.bgRed=t(41,49);e.bgGreen=t(42,49);e.bgYellow=t(43,49);e.bgBlue=t(44,49);e.bgMagenta=t(45,49);e.bgCyan=t(46,49);e.bgWhite=t(47,49);e.bgGray=t(100,49);e.redBright=t(91,39);e.greenBright=t(92,39);e.yellowBright=t(93,39);e.blueBright=t(94,39);e.magentaBright=t(95,39);e.cyanBright=t(96,39);e.whiteBright=t(97,39);e.bgRedBright=t(101,49);e.bgGreenBright=t(102,49);e.bgYellowBright=t(103,49);e.bgBlueBright=t(104,49);e.bgMagentaBright=t(105,49);e.bgCyanBright=t(106,49);e.bgWhiteBright=t(107,49);module.exports=e;
|