New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

streamline

Package Overview
Dependencies
Maintainers
1
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamline - npm Package Compare versions

Comparing version 1.0.13 to 2.0.0

25

lib/util.js

@@ -105,4 +105,8 @@ "use strict";

options.babel = options.babel || {};
var es2015plugins = require('babel-preset-es2015').plugins;
// remove regenerator plugin (last one of es2015 preset) if runtime is not callbacks
if (options.runtime !== 'callbacks') es2015plugins.pop();
var babelOpts = {
plugins: [],
presets: [],
plugins: es2015plugins,
};

@@ -112,3 +116,3 @@ Object.keys(options.babel).forEach(function(opt) {

});
if (babelOpts.plugins.indexOf('streamline') < 0) babelOpts.plugins.push('streamline');
// require the plugins now
babelOpts.plugins = babelOpts.plugins.map(function(plugin) {

@@ -125,5 +129,9 @@ if (typeof plugin === 'string') {

});
// see https://github.com/babel/babel/issues/1833
babelOpts.extra = {
streamline: {
var index = babelOpts.plugins.indexOf('streamline');
if (index < 0) index = babelOpts.plugins.length;
// replace or add streamline plugin entry, passing options
babelOpts.plugins[index] = [
require('babel-plugin-streamline'),
{
runtime: options.runtime,

@@ -133,7 +141,4 @@ quiet: options.quiet,

},
};
if (options.runtime !== 'callbacks') {
babelOpts.blacklist = babelOpts.blacklist || [];
if (babelOpts.blacklist.indexOf('regenerator') < 0) babelOpts.blacklist.push('regenerator');
}
];
// always return source maps - cache needs them

@@ -140,0 +145,0 @@ // special options like inline and both are handled post-transform, in compile logic

7

package.json
{
"name": "streamline",
"description": "Asynchronous Javascript for dummies",
"version": "1.0.13",
"version": "2.0.0",
"license": "MIT",

@@ -18,4 +18,5 @@ "homepage": "http://github.com/Sage/streamlinejs",

"colors": "^1.1.2",
"babel-core": "^5.8.25",
"babel-plugin-streamline": "^1.0.12",
"babel-core": "^6.3.17",
"babel-plugin-streamline": "^2.0.0",
"babel-preset-es2015": "^6.3.13",
"source-map-support": "^0.3.2",

@@ -22,0 +23,0 @@ "streamline-runtime": "^1.0.15"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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