babel-plugin-polyfill-es-shims
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -130,2 +130,3 @@ { | ||
}, | ||
"Array.prototype.item": {}, | ||
"Array.prototype.keys": { | ||
@@ -395,2 +396,3 @@ "chrome": "38", | ||
}, | ||
"String.prototype.item": {}, | ||
"String.prototype.matchAll": { | ||
@@ -446,2 +448,16 @@ "chrome": "80", | ||
}, | ||
"String.prototype.split": { | ||
"chrome": "15", | ||
"opera": "11", | ||
"edge": "12", | ||
"firefox": "5", | ||
"safari": "5.1", | ||
"node": "0.12", | ||
"ie": "9", | ||
"android": "4.4", | ||
"ios": "6", | ||
"phantom": "2", | ||
"samsung": "1", | ||
"electron": "0.20" | ||
}, | ||
"String.prototype.startsWith": { | ||
@@ -448,0 +464,0 @@ "chrome": "41", |
@@ -30,5 +30,8 @@ "use strict"; | ||
}; | ||
const excludeObject = { | ||
exclude: meta => meta.kind === "property" && meta.placement === "static" && meta.object === "Object" | ||
}; | ||
const excludeStatic = obj => ({ | ||
exclude: meta => meta.kind === "property" && meta.placement === "static" && meta.object === obj | ||
}); | ||
const excludeObject = excludeStatic("Object"); | ||
defineStatic("Array", "from", "1.1.0"); | ||
@@ -46,2 +49,3 @@ defineStatic("Array", "of", "1.0.0"); | ||
defineInstance("Array", "indexOf", "1.0.0", arrayCheck); | ||
defineInstance("Array", "item", "0.1.0", arrayCheck); | ||
defineInstance("Array", "keys", "1.0.0", arrayCheck, excludeObject); | ||
@@ -72,2 +76,3 @@ defineInstance("Array", "lastIndexOf", "1.0.0", arrayCheck); | ||
defineInstance("String", "includes", "2.0.0", stringCheck); | ||
defineInstance("String", "item", "0.1.0", stringCheck); | ||
defineInstance("String", "matchAll", "4.0.2", stringCheck); | ||
@@ -78,2 +83,3 @@ defineInstance("String", "padEnd", "1.1.1", stringCheck); | ||
defineInstance("String", "replaceAll", "1.0.3", stringCheck); | ||
defineInstance("String", "split", "1.0.1", stringCheck, excludeStatic("Symbol")); | ||
defineInstance("String", "startsWith", "1.0.0", stringCheck); | ||
@@ -80,0 +86,0 @@ defineInstance("String", "trim", "1.2.1", stringCheck); |
{ | ||
"name": "babel-plugin-polyfill-es-shims", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A Babel plugin to inject imports to es-shims polyfills", | ||
@@ -28,3 +28,3 @@ "repository": { | ||
}, | ||
"gitHead": "884798ac0f8dec9d8a4b6fc18967acdaf6596836" | ||
"gitHead": "5f4821a038ce49e599add9b40f3568ffaa41e7fd" | ||
} |
@@ -46,2 +46,3 @@ # babel-plugin-polyfill-es-shims | ||
| `Array.prototype.some` | [`array.prototype.some`](https://github.com/es-shims/Array.prototype.some) | | ||
| `String.prototype.split` | [`string.prototype.split`](https://github.com/es-shims/String.prototype.split) | | ||
@@ -109,10 +110,9 @@ ### ES2015 (ES6) | ||
| Builtin object or function | Package name | Owner | | ||
| :------------------------------ | :--------------------------------------------------------------------------------------- | :---- | | ||
| `globalThis` | [`globalthis`](https://github.com/es-shims/globalThis) | | ||
| `Promise.allSettled` | [`promise.allsettled`](https://github.com/es-shims/Promise.allSettled) | | ||
| `String.prototype.matchAll` | [`string.prototype.matchall`](https://github.com/ljharb/String.prototype.matchAll) | | ||
| `String.prototype.replaceAll` | [`string.prototype.replaceall`](https://github.com/es-shims/String.prototype.replaceAll) | | ||
| Builtin object or function | Package name | Owner | | ||
| :-------------------------- | :--------------------------------------------------------------------------------- | :---- | | ||
| `globalThis` | [`globalthis`](https://github.com/es-shims/globalThis) | | ||
| `Promise.allSettled` | [`promise.allsettled`](https://github.com/es-shims/Promise.allSettled) | | ||
| `String.prototype.matchAll` | [`string.prototype.matchall`](https://github.com/ljharb/String.prototype.matchAll) | | ||
### Stage 3 | ||
### ES2021 | ||
@@ -123,3 +123,11 @@ | Builtin object or function | Package name | Owner | | ||
| `Promise.any` | [`promise.any`](https://github.com/es-shims/Promise.any) | | ||
| `String.prototype.replaceAll` | [`string.prototype.replaceall`](https://github.com/es-shims/String.prototype.replaceAll) | | ||
### Proposals | ||
| Builtin object or function | Package name | Owner | | ||
| :------------------------- | :--------------------------------------------------------------------------- | :---- | | ||
| `Array.prototype.item` | [`Array.prototype.item`](https://github.com/es-shims/Array.prototype.item) | | ||
| `String.prototype.item` | [`String.prototype.item`](https://github.com/es-shims/String.prototype.item) | | ||
## Missing polyfills | ||
@@ -126,0 +134,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34536
775
135