Socket
Socket
Sign inDemoInstall

@babel/core

Package Overview
Dependencies
Maintainers
4
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/core - npm Package Compare versions

Comparing version 8.0.0-alpha.11 to 8.0.0-alpha.12

lib/transformation/file/babel-7-helpers.cjs

4

lib/config/config-chain.js

@@ -120,3 +120,3 @@ import path from "path";

if (babelrcRoots === undefined) {
return pkgData.directories.indexOf(absoluteRoot) !== -1;
return pkgData.directories.includes(absoluteRoot);
}

@@ -131,3 +131,3 @@ let babelrcPatterns = babelrcRoots;

if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) {
return pkgData.directories.indexOf(absoluteRoot) !== -1;
return pkgData.directories.includes(absoluteRoot);
}

@@ -134,0 +134,0 @@ return babelrcPatterns.some(pat => {

@@ -71,3 +71,3 @@ import gensync from "gensync";

}
if (possibilities.indexOf(desc) === -1) {
if (!possibilities.includes(desc)) {
const matches = possibilities.filter(possibility => isEqualDescriptor(possibility, desc));

@@ -74,0 +74,0 @@ if (matches.length > 0) {

@@ -26,3 +26,3 @@ import * as _babel_traverse from '@babel/traverse';

type ___PluginObject<S extends PluginPass = PluginPass> = PluginObject<S>;
type ___PluginPass<Options = {}> = PluginPass<Options>;
type ___PluginPass<Options = object> = PluginPass<Options>;
declare const ___PluginPass: typeof PluginPass;

@@ -116,3 +116,3 @@ type ___PresetAPI = PresetAPI;

interface UnloadedDescriptor<API, Options = {} | undefined | false> {
interface UnloadedDescriptor<API, Options = object | undefined | false> {
name: string | undefined;

@@ -162,3 +162,3 @@ value: object | ((api: API, options: Options, dirname: string) => unknown);

*/
value: {} | Function;
value: object | Function;
/**

@@ -170,3 +170,3 @@ * The options, if any, that were passed to the item.

*/
options: {} | void | false;
options: object | void | false;
/**

@@ -209,5 +209,5 @@ * The directory that the options for this item are relative to.

generatorOverride?: Function;
options: {};
options: object;
externalDependencies: ReadonlyDeepArray<string>;
constructor(plugin: PluginObject, options: {}, key?: string, externalDependencies?: ReadonlyDeepArray<string>);
constructor(plugin: PluginObject, options: object, key?: string, externalDependencies?: ReadonlyDeepArray<string>);
}

@@ -291,3 +291,3 @@

type CompactOption = boolean | "auto";
type RootInputSourceMapOption = {} | boolean;
type RootInputSourceMapOption = object | boolean;
type RootMode = "root" | "upward" | "upward-optional";

@@ -377,3 +377,3 @@ type TargetsListOrObject = Targets | InputTargets | InputTargets["browsers"];

};
constructor(options: {}, { code, ast, inputMap }: NormalizedFile);
constructor(options: any, { code, ast, inputMap }: NormalizedFile);
/**

@@ -401,3 +401,3 @@ * Provide backward-compatible access to the interpreter directive handling

declare class PluginPass<Options = {}> {
declare class PluginPass<Options = object> {
_map: Map<unknown, unknown>;

@@ -404,0 +404,0 @@ key: string | undefined | null;

;
export const version = "8.0.0-alpha.11";
export const version = "8.0.0-alpha.12";
export { default as File } from "./transformation/file/file.js";

@@ -4,0 +4,0 @@ export { default as buildExternalHelpers } from "./tools/build-external-helpers.js";

@@ -85,3 +85,3 @@ import * as helpers from "@babel/helpers";

helpers.list.forEach(function (name) {
if (allowlist && allowlist.indexOf(name) < 0) return;
if (allowlist && !allowlist.includes(name)) return;
const ref = refs[name] = getHelperReference(name);

@@ -88,0 +88,0 @@ const {

@@ -11,2 +11,3 @@ import * as helpers from "@babel/helpers";

import semver from "semver";
import * as babel7 from "./babel-7-helpers.cjs";
const errorVisitor = {

@@ -13,0 +14,0 @@ enter(path, state) {

{
"name": "@babel/core",
"version": "8.0.0-alpha.11",
"version": "8.0.0-alpha.12",
"description": "Babel compiler core.",

@@ -50,10 +50,10 @@ "main": "./lib/index.js",

"@ampproject/remapping": "^2.2.0",
"@babel/code-frame": "^8.0.0-alpha.11",
"@babel/generator": "^8.0.0-alpha.11",
"@babel/helper-compilation-targets": "^8.0.0-alpha.11",
"@babel/helpers": "^8.0.0-alpha.11",
"@babel/parser": "^8.0.0-alpha.11",
"@babel/template": "^8.0.0-alpha.11",
"@babel/traverse": "^8.0.0-alpha.11",
"@babel/types": "^8.0.0-alpha.11",
"@babel/code-frame": "^8.0.0-alpha.12",
"@babel/generator": "^8.0.0-alpha.12",
"@babel/helper-compilation-targets": "^8.0.0-alpha.12",
"@babel/helpers": "^8.0.0-alpha.12",
"@babel/parser": "^8.0.0-alpha.12",
"@babel/template": "^8.0.0-alpha.12",
"@babel/traverse": "^8.0.0-alpha.12",
"@babel/types": "^8.0.0-alpha.12",
"convert-source-map": "^2.0.0",

@@ -66,8 +66,8 @@ "debug": "^4.1.0",

"devDependencies": {
"@babel/helper-transform-fixture-test-runner": "^8.0.0-alpha.11",
"@babel/plugin-syntax-flow": "^8.0.0-alpha.11",
"@babel/plugin-transform-flow-strip-types": "^8.0.0-alpha.11",
"@babel/plugin-transform-modules-commonjs": "^8.0.0-alpha.11",
"@babel/preset-env": "^8.0.0-alpha.11",
"@babel/preset-typescript": "^8.0.0-alpha.11",
"@babel/helper-transform-fixture-test-runner": "^8.0.0-alpha.12",
"@babel/plugin-syntax-flow": "^8.0.0-alpha.12",
"@babel/plugin-transform-flow-strip-types": "^8.0.0-alpha.12",
"@babel/plugin-transform-modules-commonjs": "^8.0.0-alpha.12",
"@babel/preset-env": "^8.0.0-alpha.12",
"@babel/preset-typescript": "^8.0.0-alpha.12",
"@jridgewell/trace-mapping": "^0.3.25",

@@ -74,0 +74,0 @@ "@types/convert-source-map": "^2.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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