Comparing version 3.0.0-rc2 to 3.0.0-rc3
13
lib.js
@@ -5,3 +5,2 @@ const appendLibPath = require('./lib/append.js'); | ||
const executeRemote = require('./lib/remote.js'); | ||
const flags = require('./lib/flags.js'); | ||
@@ -35,13 +34,3 @@ module.exports = (function() { | ||
get: (target, name) => { | ||
if (name[0] === '_') { | ||
let flag = flags[name.substr(1)]; | ||
if (!flag) { | ||
throw new Error(`Invalid flag: "${name.substr(1)}". Valid flags: ${Object.keys(flags).join(', ')}.`); | ||
} | ||
return function __flag__() { | ||
return LibGen(rootCfg, flag(...arguments), names); | ||
}; | ||
} else { | ||
return LibGen(rootCfg, {}, appendLibPath(names, name)); | ||
} | ||
return LibGen(rootCfg, {}, appendLibPath(names, name)); | ||
} | ||
@@ -48,0 +37,0 @@ } |
@@ -0,1 +1,3 @@ | ||
// WARNING: Deprecated. Use "@local" identifier instead. | ||
const path = require('path'); | ||
@@ -2,0 +4,0 @@ const fs = require('fs'); |
@@ -45,2 +45,3 @@ const https = require('https'); | ||
cfg.keys && (headers['X-Authorization-Keys'] = JSON.stringify(cfg.keys)); | ||
cfg.background && (headers['X-Background'] = cfg.background); | ||
cfg.webhook && (headers['X-Webhook'] = cfg.webhook); | ||
@@ -47,0 +48,0 @@ cfg.convert && (headers['X-Convert-Strings'] = 'true'); |
{ | ||
"name": "lib", | ||
"version": "3.0.0-rc2", | ||
"version": "3.0.0-rc3", | ||
"description": "StdLib: Standard Library for Microservices Node.js Bindings", | ||
@@ -5,0 +5,0 @@ "main": "lib.js", |
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
14261
9
263