cors-storage
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "cors-storage", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -32,2 +32,3 @@ "main": "index.js", | ||
"rollup-plugin-commonjs": "^8.2.0", | ||
"rollup-plugin-inject": "^2.0.0", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
@@ -34,0 +35,0 @@ "rollup-plugin-uglify": "^2.0.1" |
@@ -7,14 +7,2 @@ import babel from "rollup-plugin-babel"; | ||
babel({ | ||
presets: [ | ||
[ | ||
"env", | ||
{ | ||
targets: { | ||
browsers: ["IE 10"] | ||
}, | ||
loose: true, | ||
modules: false | ||
} | ||
] | ||
], | ||
exclude: ["node_modules/**"] | ||
@@ -21,0 +9,0 @@ }) |
@@ -7,2 +7,14 @@ import commonjs from "rollup-plugin-commonjs"; | ||
const POLYFILLS = { | ||
Promise: "pinkie-promise", | ||
"Object.assign": "object-assign" | ||
}; | ||
const INJECTIONS = Object.entries(POLYFILLS).map(([nativeObj, packageName]) => | ||
inject({ | ||
exclude: `./node_modules/${packageName}/**`, | ||
[nativeObj]: packageName | ||
}) | ||
); | ||
export default { | ||
@@ -18,25 +30,4 @@ input: "src/page.js", | ||
}), | ||
inject({ | ||
// control which files this plugin applies to | ||
// with include/exclude | ||
include: "**/*.js", | ||
exclude: ["node_modules/pinkie-promise/**", "node_modules/unfetch/**", "node_modules/object-assign/**"], | ||
Promise: "pinkie-promise", | ||
fetch: "unfetch", | ||
"Object.assign": "object-assign" | ||
}), | ||
...INJECTIONS, | ||
babel({ | ||
presets: [ | ||
[ | ||
"env", | ||
{ | ||
targets: { | ||
browsers: ["IE 10"] | ||
}, | ||
loose: true, | ||
modules: false | ||
} | ||
] | ||
], | ||
exclude: ["node_modules/**"] | ||
@@ -43,0 +34,0 @@ }), |
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
15
15056
7
348
1