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

systemjs-plugin-babel

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemjs-plugin-babel - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

2

package.json
{
"name": "systemjs-plugin-babel",
"version": "0.0.17",
"version": "0.0.18",
"registry": "npm",

@@ -5,0 +5,0 @@ "jspmPackage": true,

@@ -174,2 +174,3 @@ var babel = require('systemjs-babel-build').babel;

filename: load.address,
sourceFileName: load.address,
moduleIds: false,

@@ -176,0 +177,0 @@ sourceMaps: traceOpts && traceOpts.sourceMaps || babelOptions.sourceMaps,

@@ -15,3 +15,4 @@ export default (function(module) {

var hasOwn = Object.prototype.hasOwnProperty;
var Op = Object.prototype;
var hasOwn = Op.hasOwnProperty;
var undefined; // More compressible than void 0.

@@ -40,4 +41,5 @@ var $Symbol = typeof Symbol === "function" ? Symbol : {};

function wrap(innerFn, outerFn, self, tryLocsList) {
// If outerFn provided, then outerFn.prototype instanceof Generator.
var generator = Object.create((outerFn || Generator).prototype);
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
var generator = Object.create(protoGenerator.prototype);
var context = new Context(tryLocsList || []);

@@ -88,6 +90,25 @@

var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype;
// This is a polyfill for %IteratorPrototype% for environments that
// don't natively support it.
var IteratorPrototype = {};
IteratorPrototype[iteratorSymbol] = function () {
return this;
};
var getProto = Object.getPrototypeOf;
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
if (NativeIteratorPrototype &&
NativeIteratorPrototype !== Op &&
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
// This environment has a native %IteratorPrototype%; use it instead
// of the polyfill.
IteratorPrototype = NativeIteratorPrototype;
}
var Gp = GeneratorFunctionPrototype.prototype =
Generator.prototype = Object.create(IteratorPrototype);
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
GeneratorFunctionPrototype.constructor = GeneratorFunction;
GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction";
GeneratorFunctionPrototype[toStringTagSymbol] =
GeneratorFunction.displayName = "GeneratorFunction";

@@ -129,13 +150,8 @@ // Helper for defining the .next, .throw, and .return methods of the

// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
// `value instanceof AwaitArgument` to determine if the yielded value is
// meant to be awaited. Some may consider the name of this method too
// cutesy, but they are curmudgeons.
// `hasOwn.call(value, "__await")` to determine if the yielded value is
// meant to be awaited.
runtime.awrap = function(arg) {
return new AwaitArgument(arg);
return { __await: arg };
};
function AwaitArgument(arg) {
this.arg = arg;
}
function AsyncIterator(generator) {

@@ -149,4 +165,6 @@ function invoke(method, arg, resolve, reject) {

var value = result.value;
if (value instanceof AwaitArgument) {
return Promise.resolve(value.arg).then(function(value) {
if (value &&
typeof value === "object" &&
hasOwn.call(value, "__await")) {
return Promise.resolve(value.__await).then(function(value) {
invoke("next", value, resolve, reject);

@@ -220,2 +238,3 @@ }, function(err) {

defineIteratorMethods(AsyncIterator.prototype);
runtime.AsyncIterator = AsyncIterator;

@@ -381,6 +400,2 @@ // Note that simple async functions are implemented on top of

Gp[iteratorSymbol] = function() {
return this;
};
Gp[toStringTagSymbol] = "Generator";

@@ -387,0 +402,0 @@

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