Socket
Socket
Sign inDemoInstall

core-js-compat

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

core-js-compat - npm Package Compare versions

Comparing version 3.32.2 to 3.33.0

2

compat.js

@@ -10,3 +10,3 @@ 'use strict';

function throwInvalidFilter(filter) {
throw TypeError(`Specified invalid module name or pattern: ${ filter }`);
throw new TypeError(`Specified invalid module name or pattern: ${ filter }`);
}

@@ -13,0 +13,0 @@

@@ -9,3 +9,3 @@ 'use strict';

if (corejs.major !== 3) {
throw RangeError('This version of `core-js-compat` works only with `core-js@3`.');
throw new RangeError('This version of `core-js-compat` works only with `core-js@3`.');
}

@@ -12,0 +12,0 @@ const result = [];

@@ -10,3 +10,3 @@ 'use strict';

const match = /(\d+)(?:\.(\d+))?(?:\.(\d+))?/.exec(input);
if (!match) throw TypeError(`Invalid version: ${ input }`);
if (!match) throw new TypeError(`Invalid version: ${ input }`);
const [, $major, $minor, $patch] = match;

@@ -13,0 +13,0 @@ this.major = +$major;

@@ -514,3 +514,6 @@ {

"esnext.math.f16round"
],
"3.33": [
"esnext.regexp.escape"
]
}

@@ -374,2 +374,3 @@ [

"esnext.reflect.metadata",
"esnext.regexp.escape",
"esnext.set.add-all",

@@ -376,0 +377,0 @@ "esnext.set.delete-all",

{
"name": "core-js-compat",
"version": "3.32.2",
"version": "3.33.0",
"description": "core-js compat",

@@ -24,4 +24,4 @@ "repository": {

"dependencies": {
"browserslist": "^4.21.10"
"browserslist": "^4.22.1"
}
}

@@ -30,3 +30,3 @@ ![logo](https://user-images.githubusercontent.com/2213682/146607186-8e13ddef-26a4-4ebf-befd-5aac9d77c090.png)

],
version: '3.32', // used `core-js` version, by default - the latest
version: '3.33', // used `core-js` version, by default - the latest
inverse: false, // inverse of the result - shows modules that are NOT required for the target environment

@@ -129,5 +129,5 @@ });

// the subset of modules which available in the passed `core-js` version:
require('core-js-compat/get-modules-list-for-target-version')('3.32'); // => Array<ModuleName>
require('core-js-compat/get-modules-list-for-target-version')('3.33'); // => Array<ModuleName>
// or
require('core-js-compat').getModulesListForTargetVersion('3.32'); // => Array<ModuleName>
require('core-js-compat').getModulesListForTargetVersion('3.33'); // => Array<ModuleName>
```

@@ -134,0 +134,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