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.0 to 1.0.1

2

_page.js

@@ -1,1 +0,1 @@

!function(){"use strict";function t(t,o){for(var r in o)t[r]=o[r];return t}function o(t,o,r){this.data=t,this.source=o,this.origin=r}o.prototype={constructor:o,post:function(o){this.source.postMessage(JSON.stringify(t({},o||{},this.data._requestID)),this.origin)},postData:function(t){this.post({data:t})},postError:function(t){this.post({error:t})}},function(t){window.addEventListener("message",function(r){var s=JSON.parse(r.data),i=r.source,n=r.origin;t(new o(s,i,n))},!1)}(function(t){var o=t.data,r=t.postError,s=t.postData;if(!o.obj)return r('missing "obj" property');var i=window[o.obj];if(!i)return r(o.obj+" not supported");if(!o.op)return r('missing "op" property');if(!(o.op in i))return r("method does not exists "+o.obj+"."+o.op);try{s(i[o.op].apply(i,o.args||[]))}catch(t){r(t.message)}})}();
!function(){"use strict";function t(t,o){for(var r in o)t[r]=o[r];return t}function o(t,o,r){this.data=t,this.source=o,this.origin=r}o.prototype={constructor:o,post:function(o){this.source.postMessage(JSON.stringify(t({},o||{},this.data._requestID)),this.origin)},postData:function(t){this.post({data:t})},postError:function(t){this.post({error:t})}},function(t){window.addEventListener("message",function(r){var i=JSON.parse(r.data),n=r.source,s=r.origin;t(new o(i,n,s))},!1)}(function(t){var o=t.data,r=t.postError.bind(t),i=t.postData.bind(t);if(!o.obj)return r('missing "obj" property');var n=window[o.obj];if(!n)return r(o.obj+" not supported");if(!o.op)return r('missing "op" property');if(!(o.op in n))return r("method does not exists "+o.obj+"."+o.op);try{i(n[o.op].apply(n,o.args||[]))}catch(t){r(t.message)}})}();
{
"name": "cors-storage",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -28,9 +28,9 @@ "main": "index.js",

"devDependencies": {
"eslint": "^3.19.0",
"eslint": "^4.5.0",
"eslint-plugin-promise": "^3.5.0",
"rollup": "^0.41.6",
"rollup-plugin-commonjs": "^8.0.2",
"rollup": "^0.49.2",
"rollup-plugin-commonjs": "^8.2.0",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-uglify": "^1.0.2"
"rollup-plugin-uglify": "^2.0.1"
}
}

@@ -6,5 +6,6 @@ import commonjs from "rollup-plugin-commonjs";

export default {
entry: "src/page.js",
input: "src/page.js",
plugins: [
nodeResolve({
module: true,
jsnext: true,

@@ -11,0 +12,0 @@ main: true

@@ -5,4 +5,4 @@ import onMessage from "./on-message";

var data = helper.data;
var postError = helper.postError;
var postData = helper.postData;
var postError = helper.postError.bind(helper);
var postData = helper.postData.bind(helper);

@@ -9,0 +9,0 @@ if (!data.obj) {

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