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

lib

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib - npm Package Compare versions

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 @@ }

2

lib/local.js

@@ -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",

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