Socket
Socket
Sign inDemoInstall

@babel/runtime

Package Overview
Dependencies
Maintainers
4
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/runtime - npm Package Compare versions

Comparing version 7.22.5 to 7.22.6

15

helpers/dispose.js

@@ -14,11 +14,8 @@ function dispose_SuppressedError(suppressed, error) {

function next() {
if (0 !== stack.length) {
var r = stack.pop();
if (r.a) return Promise.resolve(r.d.call(r.v)).then(next, err);
try {
r.d.call(r.v);
} catch (e) {
return err(e);
}
return next();
for (; stack.length > 0;) try {
var r = stack.pop(),
p = r.d.call(r.v);
if (r.a) return Promise.resolve(p).then(next, err);
} catch (e) {
return err(e);
}

@@ -25,0 +22,0 @@ if (hasError) throw error;

@@ -14,11 +14,8 @@ function dispose_SuppressedError(suppressed, error) {

function next() {
if (0 !== stack.length) {
var r = stack.pop();
if (r.a) return Promise.resolve(r.d.call(r.v)).then(next, err);
try {
r.d.call(r.v);
} catch (e) {
return err(e);
}
return next();
for (; stack.length > 0;) try {
var r = stack.pop(),
p = r.d.call(r.v);
if (r.a) return Promise.resolve(p).then(next, err);
} catch (e) {
return err(e);
}

@@ -25,0 +22,0 @@ if (hasError) throw error;

2

helpers/esm/using.js
import _typeof from "./typeof.js";
export default function _using(stack, value, isAwait) {
if (null == value) return value;
if ("object" != _typeof(value)) throw new TypeError("using decarations can only be used with objects, null, or undefined.");
if ("object" != _typeof(value)) throw new TypeError("using declarations can only be used with objects, null, or undefined.");
if (isAwait) var dispose = value[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];

@@ -6,0 +6,0 @@ if (null == dispose && (dispose = value[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof dispose) throw new TypeError("Property [Symbol.dispose] is not a function.");

var _typeof = require("./typeof.js")["default"];
function _using(stack, value, isAwait) {
if (null == value) return value;
if ("object" != _typeof(value)) throw new TypeError("using decarations can only be used with objects, null, or undefined.");
if ("object" != _typeof(value)) throw new TypeError("using declarations can only be used with objects, null, or undefined.");
if (isAwait) var dispose = value[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];

@@ -6,0 +6,0 @@ if (null == dispose && (dispose = value[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof dispose) throw new TypeError("Property [Symbol.dispose] is not a function.");

{
"name": "@babel/runtime",
"version": "7.22.5",
"version": "7.22.6",
"description": "babel's modular runtime helpers",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -5,3 +5,3 @@ # @babel/runtime

See our website [@babel/runtime](https://babeljs.io/docs/en/babel-runtime) for more information.
See our website [@babel/runtime](https://babeljs.io/docs/babel-runtime) for more information.

@@ -8,0 +8,0 @@ ## Install

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