New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cors-storage

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cors-storage - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

.babelrc

3

package.json
{
"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

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