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

bun-scripty

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bun-scripty - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

dist/browser/cli.js
#!/usr/bin/env bun
// @bun
var{file:d}=globalThis.Bun;var c=async({named:t,indexed:e})=>{for(let r of[t,e])if(await d(r).exists())return r;throw new Error(`No script file found at ${t} or ${e}`)};class o extends Error{constructor(t){super(`Environment variable '${t}' is not defined`);this.name="EnvVarNotDefinedError"}}var i=(...t)=>t.join("/").replace(/\/+/g,"/");var m=async()=>{const{npm_config_local_prefix:t,npm_package_json:e,npm_lifecycle_event:r}=process.env;if(!r)throw new o("npm_lifecycle_event");if(!e)throw new o("npm_package_json");if(!t)throw new o("npm_config_local_prefix");if(!await import(e))throw new Error("Failed to import package.json");const n=r.replaceAll(":","/"),s=i(t,"scripts");return{named:i(s,`${n}.ts`),indexed:i(s,n,"index.ts")}};var p=(t,e)=>{const r=t.getReader(),a=async()=>{const{done:n,value:s}=await r.read();if(n){console.log(`${e===process.stdout?"stdout":"stderr"} complete`);return}e.write(s),await a()};a()};var{spawn:l}=globalThis.Bun;var f=(t)=>l(["bun","run",t],{stdout:"pipe",stderr:"pipe"});try{const t=await m().then(c).then(f);p(t.stdout,process.stdout),p(t.stderr,process.stderr);const e=await t.exited;console.log(`Process exited with code ${e}`)}catch(t){console.error(t)}export{m as mapScriptPathSegmentToFilePaths};
var{file:d}=globalThis.Bun;var c=async({named:t,indexed:e})=>{for(let r of[t,e])if(await d(r).exists())return r;throw new Error(`No script file found at ${t} or ${e}`)};class o extends Error{constructor(t){super(`Environment variable '${t}' is not defined`);this.name="EnvVarNotDefinedError"}}var i=(...t)=>t.join("/").replace(/\/+/g,"/");var m=async()=>{const{npm_config_local_prefix:t,npm_package_json:e,npm_lifecycle_event:r}=process.env;if(!r)throw new o("npm_lifecycle_event");if(!e)throw new o("npm_package_json");if(!t)throw new o("npm_config_local_prefix");if(!await import(e))throw new Error("Failed to import package.json");const n=r.replaceAll(":","/"),s=i(t,"scripts");return{named:i(s,`${n}.ts`),indexed:i(s,n,"index.ts")}};var p=(t,e)=>{const r=t.getReader(),a=async()=>{const{done:n,value:s}=await r.read();if(n){console.log(`${e===process.stdout?"stdout":"stderr"} complete`);return}e.write(s),await a()};a()};var{spawn:l}=globalThis.Bun;var f=(t)=>l(["bun","run",t],{stdout:"pipe",stderr:"pipe"});try{const t=await m().then(c).then(f);p(t.stdout,process.stdout),p(t.stderr,process.stderr);const e=await t.exited;console.log(`Process exited with code ${e}`)}catch(t){console.error(t)}

@@ -1,1 +0,1 @@

class t extends Error{constructor(e){super(`Environment variable '${e}' is not defined`);this.name="EnvVarNotDefinedError"}}var n=(...e)=>e.join("/").replace(/\/+/g,"/");var p=async()=>{const{npm_config_local_prefix:e,npm_package_json:r,npm_lifecycle_event:o}=process.env;if(!o)throw new t("npm_lifecycle_event");if(!r)throw new t("npm_package_json");if(!e)throw new t("npm_config_local_prefix");if(!await import(r))throw new Error("Failed to import package.json");const i=o.replaceAll(":","/"),a=n(e,"scripts");return{named:n(a,`${i}.ts`),indexed:n(a,i,"index.ts")}};export{p as mapScriptPathSegmentToFilePaths};
class t extends Error{constructor(e){super(`Environment variable '${e}' is not defined`);this.name="EnvVarNotDefinedError"}}var n=(...e)=>e.join("/").replace(/\/+/g,"/");var _=async()=>{const{npm_config_local_prefix:e,npm_package_json:r,npm_lifecycle_event:o}=process.env;if(!o)throw new t("npm_lifecycle_event");if(!r)throw new t("npm_package_json");if(!e)throw new t("npm_config_local_prefix");if(!await import(r))throw new Error("Failed to import package.json");const i=o.replaceAll(":","/"),a=n(e,"scripts");return{named:n(a,`${i}.ts`),indexed:n(a,i,"index.ts")}};export{_ as mapScriptPathSegmentToFilePaths};
#!/usr/bin/env bun
// @bun
var{file:d}=globalThis.Bun;var c=async({named:t,indexed:e})=>{for(let r of[t,e])if(await d(r).exists())return r;throw new Error(`No script file found at ${t} or ${e}`)};class o extends Error{constructor(t){super(`Environment variable '${t}' is not defined`);this.name="EnvVarNotDefinedError"}}var i=(...t)=>t.join("/").replace(/\/+/g,"/");var m=async()=>{const{npm_config_local_prefix:t,npm_package_json:e,npm_lifecycle_event:r}=process.env;if(!r)throw new o("npm_lifecycle_event");if(!e)throw new o("npm_package_json");if(!t)throw new o("npm_config_local_prefix");if(!await import(e))throw new Error("Failed to import package.json");const n=r.replaceAll(":","/"),s=i(t,"scripts");return{named:i(s,`${n}.ts`),indexed:i(s,n,"index.ts")}};var p=(t,e)=>{const r=t.getReader(),a=async()=>{const{done:n,value:s}=await r.read();if(n){console.log(`${e===process.stdout?"stdout":"stderr"} complete`);return}e.write(s),await a()};a()};var{spawn:l}=globalThis.Bun;var f=(t)=>l(["bun","run",t],{stdout:"pipe",stderr:"pipe"});try{const t=await m().then(c).then(f);p(t.stdout,process.stdout),p(t.stderr,process.stderr);const e=await t.exited;console.log(`Process exited with code ${e}`)}catch(t){console.error(t)}export{m as mapScriptPathSegmentToFilePaths};
var{file:d}=globalThis.Bun;var c=async({named:t,indexed:e})=>{for(let r of[t,e])if(await d(r).exists())return r;throw new Error(`No script file found at ${t} or ${e}`)};class o extends Error{constructor(t){super(`Environment variable '${t}' is not defined`);this.name="EnvVarNotDefinedError"}}var i=(...t)=>t.join("/").replace(/\/+/g,"/");var m=async()=>{const{npm_config_local_prefix:t,npm_package_json:e,npm_lifecycle_event:r}=process.env;if(!r)throw new o("npm_lifecycle_event");if(!e)throw new o("npm_package_json");if(!t)throw new o("npm_config_local_prefix");if(!await import(e))throw new Error("Failed to import package.json");const n=r.replaceAll(":","/"),s=i(t,"scripts");return{named:i(s,`${n}.ts`),indexed:i(s,n,"index.ts")}};var p=(t,e)=>{const r=t.getReader(),a=async()=>{const{done:n,value:s}=await r.read();if(n){console.log(`${e===process.stdout?"stdout":"stderr"} complete`);return}e.write(s),await a()};a()};var{spawn:l}=globalThis.Bun;var f=(t)=>l(["bun","run",t],{stdout:"pipe",stderr:"pipe"});try{const t=await m().then(c).then(f);p(t.stdout,process.stdout),p(t.stderr,process.stderr);const e=await t.exited;console.log(`Process exited with code ${e}`)}catch(t){console.error(t)}

@@ -1,1 +0,1 @@

class t extends Error{constructor(e){super(`Environment variable '${e}' is not defined`);this.name="EnvVarNotDefinedError"}}var n=(...e)=>e.join("/").replace(/\/+/g,"/");var p=async()=>{const{npm_config_local_prefix:e,npm_package_json:r,npm_lifecycle_event:o}=process.env;if(!o)throw new t("npm_lifecycle_event");if(!r)throw new t("npm_package_json");if(!e)throw new t("npm_config_local_prefix");if(!await import(r))throw new Error("Failed to import package.json");const i=o.replaceAll(":","/"),a=n(e,"scripts");return{named:n(a,`${i}.ts`),indexed:n(a,i,"index.ts")}};export{p as mapScriptPathSegmentToFilePaths};
class t extends Error{constructor(e){super(`Environment variable '${e}' is not defined`);this.name="EnvVarNotDefinedError"}}var n=(...e)=>e.join("/").replace(/\/+/g,"/");var _=async()=>{const{npm_config_local_prefix:e,npm_package_json:r,npm_lifecycle_event:o}=process.env;if(!o)throw new t("npm_lifecycle_event");if(!r)throw new t("npm_package_json");if(!e)throw new t("npm_config_local_prefix");if(!await import(r))throw new Error("Failed to import package.json");const i=o.replaceAll(":","/"),a=n(e,"scripts");return{named:n(a,`${i}.ts`),indexed:n(a,i,"index.ts")}};export{_ as mapScriptPathSegmentToFilePaths};
#!/usr/bin/env bun
// @bun
var{file:d}=globalThis.Bun;var c=async({named:t,indexed:e})=>{for(let r of[t,e])if(await d(r).exists())return r;throw new Error(`No script file found at ${t} or ${e}`)};class o extends Error{constructor(t){super(`Environment variable '${t}' is not defined`);this.name="EnvVarNotDefinedError"}}var i=(...t)=>t.join("/").replace(/\/+/g,"/");var m=async()=>{const{npm_config_local_prefix:t,npm_package_json:e,npm_lifecycle_event:r}=process.env;if(!r)throw new o("npm_lifecycle_event");if(!e)throw new o("npm_package_json");if(!t)throw new o("npm_config_local_prefix");if(!await import(e))throw new Error("Failed to import package.json");const n=r.replaceAll(":","/"),s=i(t,"scripts");return{named:i(s,`${n}.ts`),indexed:i(s,n,"index.ts")}};var p=(t,e)=>{const r=t.getReader(),a=async()=>{const{done:n,value:s}=await r.read();if(n){console.log(`${e===process.stdout?"stdout":"stderr"} complete`);return}e.write(s),await a()};a()};var{spawn:l}=globalThis.Bun;var f=(t)=>l(["bun","run",t],{stdout:"pipe",stderr:"pipe"});try{const t=await m().then(c).then(f);p(t.stdout,process.stdout),p(t.stderr,process.stderr);const e=await t.exited;console.log(`Process exited with code ${e}`)}catch(t){console.error(t)}export{m as mapScriptPathSegmentToFilePaths};
var{file:d}=globalThis.Bun;var c=async({named:t,indexed:e})=>{for(let r of[t,e])if(await d(r).exists())return r;throw new Error(`No script file found at ${t} or ${e}`)};class o extends Error{constructor(t){super(`Environment variable '${t}' is not defined`);this.name="EnvVarNotDefinedError"}}var i=(...t)=>t.join("/").replace(/\/+/g,"/");var m=async()=>{const{npm_config_local_prefix:t,npm_package_json:e,npm_lifecycle_event:r}=process.env;if(!r)throw new o("npm_lifecycle_event");if(!e)throw new o("npm_package_json");if(!t)throw new o("npm_config_local_prefix");if(!await import(e))throw new Error("Failed to import package.json");const n=r.replaceAll(":","/"),s=i(t,"scripts");return{named:i(s,`${n}.ts`),indexed:i(s,n,"index.ts")}};var p=(t,e)=>{const r=t.getReader(),a=async()=>{const{done:n,value:s}=await r.read();if(n){console.log(`${e===process.stdout?"stdout":"stderr"} complete`);return}e.write(s),await a()};a()};var{spawn:l}=globalThis.Bun;var f=(t)=>l(["bun","run",t],{stdout:"pipe",stderr:"pipe"});try{const t=await m().then(c).then(f);p(t.stdout,process.stdout),p(t.stderr,process.stderr);const e=await t.exited;console.log(`Process exited with code ${e}`)}catch(t){console.error(t)}
// @bun
class t extends Error{constructor(e){super(`Environment variable '${e}' is not defined`);this.name="EnvVarNotDefinedError"}}var n=(...e)=>e.join("/").replace(/\/+/g,"/");var p=async()=>{const{npm_config_local_prefix:e,npm_package_json:r,npm_lifecycle_event:o}=process.env;if(!o)throw new t("npm_lifecycle_event");if(!r)throw new t("npm_package_json");if(!e)throw new t("npm_config_local_prefix");if(!await import(r))throw new Error("Failed to import package.json");const i=o.replaceAll(":","/"),a=n(e,"scripts");return{named:n(a,`${i}.ts`),indexed:n(a,i,"index.ts")}};export{p as mapScriptPathSegmentToFilePaths};
class t extends Error{constructor(e){super(`Environment variable '${e}' is not defined`);this.name="EnvVarNotDefinedError"}}var n=(...e)=>e.join("/").replace(/\/+/g,"/");var _=async()=>{const{npm_config_local_prefix:e,npm_package_json:r,npm_lifecycle_event:o}=process.env;if(!o)throw new t("npm_lifecycle_event");if(!r)throw new t("npm_package_json");if(!e)throw new t("npm_config_local_prefix");if(!await import(r))throw new Error("Failed to import package.json");const i=o.replaceAll(":","/"),a=n(e,"scripts");return{named:n(a,`${i}.ts`),indexed:n(a,i,"index.ts")}};export{_ as mapScriptPathSegmentToFilePaths};
// Generated by dts-bundle-generator v9.5.1
export type PartialPkgJSON = {
scripts: Record<string, string>;
};
export declare const mapScriptPathSegmentToFilePaths: <T extends PartialPkgJSON | undefined = undefined>() => Promise<{
readonly named: `${string}/scripts/${string}.ts`;
readonly indexed: `${string}/scripts/${string}/index.ts`;
}>;
export {};
#!/usr/bin/env bun
// @bun
var{file:d}=globalThis.Bun;var c=async({named:t,indexed:e})=>{for(let r of[t,e])if(await d(r).exists())return r;throw new Error(`No script file found at ${t} or ${e}`)};class o extends Error{constructor(t){super(`Environment variable '${t}' is not defined`);this.name="EnvVarNotDefinedError"}}var i=(...t)=>t.join("/").replace(/\/+/g,"/");var m=async()=>{const{npm_config_local_prefix:t,npm_package_json:e,npm_lifecycle_event:r}=process.env;if(!r)throw new o("npm_lifecycle_event");if(!e)throw new o("npm_package_json");if(!t)throw new o("npm_config_local_prefix");if(!await import(e))throw new Error("Failed to import package.json");const n=r.replaceAll(":","/"),s=i(t,"scripts");return{named:i(s,`${n}.ts`),indexed:i(s,n,"index.ts")}};var p=(t,e)=>{const r=t.getReader(),a=async()=>{const{done:n,value:s}=await r.read();if(n){console.log(`${e===process.stdout?"stdout":"stderr"} complete`);return}e.write(s),await a()};a()};var{spawn:l}=globalThis.Bun;var f=(t)=>l(["bun","run",t],{stdout:"pipe",stderr:"pipe"});try{const t=await m().then(c).then(f);p(t.stdout,process.stdout),p(t.stderr,process.stderr);const e=await t.exited;console.log(`Process exited with code ${e}`)}catch(t){console.error(t)}export{m as mapScriptPathSegmentToFilePaths};
var{file:d}=globalThis.Bun;var c=async({named:t,indexed:e})=>{for(let r of[t,e])if(await d(r).exists())return r;throw new Error(`No script file found at ${t} or ${e}`)};class o extends Error{constructor(t){super(`Environment variable '${t}' is not defined`);this.name="EnvVarNotDefinedError"}}var i=(...t)=>t.join("/").replace(/\/+/g,"/");var m=async()=>{const{npm_config_local_prefix:t,npm_package_json:e,npm_lifecycle_event:r}=process.env;if(!r)throw new o("npm_lifecycle_event");if(!e)throw new o("npm_package_json");if(!t)throw new o("npm_config_local_prefix");if(!await import(e))throw new Error("Failed to import package.json");const n=r.replaceAll(":","/"),s=i(t,"scripts");return{named:i(s,`${n}.ts`),indexed:i(s,n,"index.ts")}};var p=(t,e)=>{const r=t.getReader(),a=async()=>{const{done:n,value:s}=await r.read();if(n){console.log(`${e===process.stdout?"stdout":"stderr"} complete`);return}e.write(s),await a()};a()};var{spawn:l}=globalThis.Bun;var f=(t)=>l(["bun","run",t],{stdout:"pipe",stderr:"pipe"});try{const t=await m().then(c).then(f);p(t.stdout,process.stdout),p(t.stderr,process.stderr);const e=await t.exited;console.log(`Process exited with code ${e}`)}catch(t){console.error(t)}
{
"name": "bun-scripty",
"version": "1.0.3",
"version": "1.0.4",
"description": "Scripty for Bun",

@@ -5,0 +5,0 @@ "keywords": [

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