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

@babel/helpers

Package Overview
Dependencies
Maintainers
6
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helpers - npm Package Compare versions

Comparing version 7.14.0 to 7.14.5

4

lib/helpers-generated.js

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

var _template = _interopRequireDefault(require("@babel/template"));
var _template = require("@babel/template");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const jsx = {

@@ -14,0 +12,0 @@ minVersion: "7.0.0-beta.0",

@@ -8,12 +8,6 @@ "use strict";

var _template = _interopRequireDefault(require("@babel/template"));
var _template = require("@babel/template");
var generated = _interopRequireWildcard(require("./helpers-generated"));
var generated = require("./helpers-generated");
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const helpers = Object.assign({

@@ -20,0 +14,0 @@ __proto__: null

@@ -8,3 +8,3 @@ "use strict";

const defineProperty = require("defineProperty");
var _defineProperty = require("defineProperty");

@@ -35,3 +35,3 @@ function ownKeys(object, enumerableOnly) {

ownKeys(Object(source), true).forEach(function (key) {
defineProperty(target, key, source[key]);
_defineProperty(target, key, source[key]);
});

@@ -38,0 +38,0 @@ } else if (Object.getOwnPropertyDescriptors) {

@@ -8,5 +8,5 @@ "use strict";

const setPrototypeOf = require("setPrototypeOf");
var _setPrototypeOf = require("setPrototypeOf");
const inherits = require("inherits");
var _inherits = require("inherits");

@@ -27,6 +27,6 @@ function _wrapRegExp() {

return setPrototypeOf(_this, BabelRegExp.prototype);
return _setPrototypeOf(_this, BabelRegExp.prototype);
}
inherits(BabelRegExp, RegExp);
_inherits(BabelRegExp, RegExp);

@@ -33,0 +33,0 @@ BabelRegExp.prototype.exec = function (str) {

@@ -12,14 +12,8 @@ "use strict";

var _traverse = _interopRequireDefault(require("@babel/traverse"));
var _traverse = require("@babel/traverse");
var t = _interopRequireWildcard(require("@babel/types"));
var t = require("@babel/types");
var _helpers = _interopRequireDefault(require("./helpers"));
var _helpers = require("./helpers");
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function makePath(path) {

@@ -26,0 +20,0 @@ const parts = [];

{
"name": "@babel/helpers",
"version": "7.14.0",
"version": "7.14.5",
"description": "Collection of helper functions used by Babel transforms.",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"author": "The Babel Team (https://babel.dev/team)",
"homepage": "https://babel.dev/docs/en/next/babel-helpers",

@@ -16,11 +16,14 @@ "license": "MIT",

},
"main": "lib/index.js",
"main": "./lib/index.js",
"dependencies": {
"@babel/template": "^7.12.13",
"@babel/traverse": "^7.14.0",
"@babel/types": "^7.14.0"
"@babel/template": "^7.14.5",
"@babel/traverse": "^7.14.5",
"@babel/types": "^7.14.5"
},
"devDependencies": {
"@babel/helper-plugin-test-runner": "7.13.10"
"@babel/helper-plugin-test-runner": "7.14.5"
},
"engines": {
"node": ">=6.9.0"
}
}
import fs from "fs";
import { join } from "path";
import { URL } from "url";
import { URL, fileURLToPath } from "url";

@@ -26,3 +26,3 @@ const HELPERS_FOLDER = new URL("../src/helpers", import.meta.url);

const fileContents = await fs.promises.readFile(
join(HELPERS_FOLDER.pathname, file),
join(fileURLToPath(HELPERS_FOLDER), file),
"utf8"

@@ -29,0 +29,0 @@ );

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