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

@haibun/core

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@haibun/core - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

12

build/lib/namedVars.js

@@ -8,2 +8,3 @@ "use strict";

const TYPE_CREDENTIAL = 'c_';
const TYPE_ENV = 'e_';
const TYPE_VAR = 'b_';

@@ -16,4 +17,5 @@ // from source or literal

const b = `\`(?<${TYPE_VAR}${num}>.+)\``; // var
const e = `\{(?<${TYPE_ENV}${num}>.+)\}`; // var
const t = `(?<${TYPE_VAR_OR_LITERAL}${num}>.+)`; // var or literal
return `(${q}|${c}|${b}|${t})`;
return `(${q}|${c}|${e}|${b}|${t})`;
};

@@ -97,2 +99,10 @@ exports.matchGroups = matchGroups;

}
else if (namedKey.startsWith(TYPE_ENV)) {
// FIXME add test
const val = process.env[namedValue];
if (!val) {
throw Error(`no env value for "${namedValue}" from ${JSON.stringify({ shared, type })}`);
}
namedFromVars[name] = val;
}
else if (namedKey.startsWith(TYPE_QUOTED)) {

@@ -99,0 +109,0 @@ // quoted

2

package.json
{
"name": "@haibun/core",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -5,0 +5,0 @@ "author": "",

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