Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

filestack-react

Package Overview
Dependencies
Maintainers
4
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filestack-react - npm Package Compare versions

Comparing version 1.1.2 to 1.2.2

4

package.json
{
"name": "filestack-react",
"version": "1.1.2",
"version": "1.2.2",
"main": "dist/filestack-react.js",

@@ -70,3 +70,3 @@ "description": "react component for filestack",

"dependencies": {
"filestack-js": "^0.8.1"
"filestack-js": "^0.8.5"
},

@@ -73,0 +73,0 @@ "jest": {

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

[![NPM Version](https://img.shields.io/badge/npm-1.1.2-red.svg)](https://www.npmjs.com/package/filestack-react)
[![NPM Version](https://img.shields.io/badge/npm-1.2.2-red.svg)](https://www.npmjs.com/package/filestack-react)
[![coverage](https://img.shields.io/badge/coverage-100%25-red.svg)](https://www.npmjs.com/package/filestack-react)

@@ -153,2 +153,5 @@ [![Package Quality](http://npm.packagequality.com/shield/react-filestack.svg)](http://packagequality.com/#?package=react-filestack)

> ### cname
> **optional** Custom domain to use for all URLs. This requires the custom CNAME feature on your Filestack app.
## Versioning

@@ -155,0 +158,0 @@ Filestack React follows the [Semantic Versioning](http://semver.org/).

@@ -18,2 +18,3 @@ import React, { Component } from 'react';

render: null,
cname: null,
};

@@ -34,2 +35,3 @@

render: PropTypes.func,
cname: PropTypes.string,
};

@@ -40,3 +42,12 @@

event.preventDefault();
const { apikey, onSuccess, onError, options, mode, file, security } = this.props;
const {
apikey,
onSuccess,
onError,
options,
mode,
file,
security,
cname
} = this.props;
const onFinished = (result) => {

@@ -57,3 +68,3 @@ if (typeof onSuccess === 'function') {

this.initClient(mode, apikey, options, file, security)
this.initClient(mode, apikey, options, file, security, cname)
.then(onFinished)

@@ -63,7 +74,7 @@ .catch(onFail);

initClient = (mode, apikey, options, file, security) => {
initClient = (mode, apikey, options, file, security, cname) => {
const { url, handle } = options;
delete options.handle;
delete options.url;
const client = filestack.init(apikey, security);
const client = filestack.init(apikey, security, cname);

@@ -70,0 +81,0 @@ if (mode === 'transform') {

{"/Users/Sam/Documents/projects/filestack-react/setup-jasmine-env.js": {"path":"/Users/Sam/Documents/projects/filestack-react/setup-jasmine-env.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}},"1":{"start":{"line":3,"column":16},"end":{"line":3,"column":44}},"2":{"start":{"line":4,"column":20},"end":{"line":7,"column":2}},"3":{"start":{"line":8,"column":0},"end":{"line":8,"column":44}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1},"f":{},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"f130347da427379ef1eefb56cbdb6788038eeca4"}
,"/Users/Sam/Documents/projects/filestack-react/src/ReactFilestack.jsx": {"path":"/Users/Sam/Documents/projects/filestack-react/src/ReactFilestack.jsx","statementMap":{"0":{"start":{"line":11,"column":25},"end":{"line":11,"column":44}},"1":{"start":{"line":12,"column":22},"end":{"line":12,"column":42}},"2":{"start":{"line":36,"column":4},"end":{"line":36,"column":28}},"3":{"start":{"line":37,"column":4},"end":{"line":37,"column":27}},"4":{"start":{"line":38,"column":74},"end":{"line":38,"column":84}},"5":{"start":{"line":39,"column":23},"end":{"line":45,"column":5}},"6":{"start":{"line":40,"column":6},"end":{"line":44,"column":7}},"7":{"start":{"line":41,"column":8},"end":{"line":41,"column":26}},"8":{"start":{"line":43,"column":8},"end":{"line":43,"column":28}},"9":{"start":{"line":46,"column":19},"end":{"line":52,"column":5}},"10":{"start":{"line":47,"column":6},"end":{"line":51,"column":7}},"11":{"start":{"line":48,"column":8},"end":{"line":48,"column":23}},"12":{"start":{"line":50,"column":8},"end":{"line":50,"column":29}},"13":{"start":{"line":54,"column":4},"end":{"line":56,"column":21}},"14":{"start":{"line":60,"column":28},"end":{"line":60,"column":35}},"15":{"start":{"line":61,"column":4},"end":{"line":61,"column":26}},"16":{"start":{"line":62,"column":4},"end":{"line":62,"column":23}},"17":{"start":{"line":63,"column":19},"end":{"line":63,"column":51}},"18":{"start":{"line":65,"column":4},"end":{"line":83,"column":5}},"19":{"start":{"line":66,"column":6},"end":{"line":72,"column":9}},"20":{"start":{"line":67,"column":8},"end":{"line":71,"column":9}},"21":{"start":{"line":68,"column":10},"end":{"line":68,"column":50}},"22":{"start":{"line":70,"column":10},"end":{"line":70,"column":22}},"23":{"start":{"line":73,"column":11},"end":{"line":83,"column":5}},"24":{"start":{"line":74,"column":6},"end":{"line":74,"column":46}},"25":{"start":{"line":75,"column":11},"end":{"line":83,"column":5}},"26":{"start":{"line":76,"column":6},"end":{"line":76,"column":46}},"27":{"start":{"line":77,"column":11},"end":{"line":83,"column":5}},"28":{"start":{"line":78,"column":6},"end":{"line":78,"column":43}},"29":{"start":{"line":79,"column":11},"end":{"line":83,"column":5}},"30":{"start":{"line":80,"column":6},"end":{"line":80,"column":42}},"31":{"start":{"line":81,"column":11},"end":{"line":83,"column":5}},"32":{"start":{"line":82,"column":6},"end":{"line":82,"column":45}},"33":{"start":{"line":85,"column":4},"end":{"line":85,"column":32}},"34":{"start":{"line":89,"column":78},"end":{"line":89,"column":88}},"35":{"start":{"line":90,"column":4},"end":{"line":94,"column":5}},"36":{"start":{"line":91,"column":6},"end":{"line":93,"column":8}},"37":{"start":{"line":95,"column":16},"end":{"line":95,"column":37}},"38":{"start":{"line":96,"column":4},"end":{"line":104,"column":6}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":11,"column":15},"end":{"line":11,"column":16}},"loc":{"start":{"line":11,"column":25},"end":{"line":11,"column":44}},"line":11},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":13},"end":{"line":12,"column":14}},"loc":{"start":{"line":12,"column":22},"end":{"line":12,"column":42}},"line":12},"2":{"name":"(anonymous_2)","decl":{"start":{"line":35,"column":16},"end":{"line":35,"column":17}},"loc":{"start":{"line":35,"column":27},"end":{"line":57,"column":3}},"line":35},"3":{"name":"(anonymous_3)","decl":{"start":{"line":39,"column":23},"end":{"line":39,"column":24}},"loc":{"start":{"line":39,"column":35},"end":{"line":45,"column":5}},"line":39},"4":{"name":"(anonymous_4)","decl":{"start":{"line":46,"column":19},"end":{"line":46,"column":20}},"loc":{"start":{"line":46,"column":30},"end":{"line":52,"column":5}},"line":46},"5":{"name":"(anonymous_5)","decl":{"start":{"line":59,"column":15},"end":{"line":59,"column":16}},"loc":{"start":{"line":59,"column":58},"end":{"line":86,"column":3}},"line":59},"6":{"name":"(anonymous_6)","decl":{"start":{"line":66,"column":25},"end":{"line":66,"column":26}},"loc":{"start":{"line":66,"column":46},"end":{"line":72,"column":7}},"line":66},"7":{"name":"(anonymous_7)","decl":{"start":{"line":88,"column":2},"end":{"line":88,"column":3}},"loc":{"start":{"line":88,"column":12},"end":{"line":105,"column":3}},"line":88}},"branchMap":{"0":{"loc":{"start":{"line":40,"column":6},"end":{"line":44,"column":7}},"type":"if","locations":[{"start":{"line":40,"column":6},"end":{"line":44,"column":7}},{"start":{"line":40,"column":6},"end":{"line":44,"column":7}}],"line":40},"1":{"loc":{"start":{"line":47,"column":6},"end":{"line":51,"column":7}},"type":"if","locations":[{"start":{"line":47,"column":6},"end":{"line":51,"column":7}},{"start":{"line":47,"column":6},"end":{"line":51,"column":7}}],"line":47},"2":{"loc":{"start":{"line":65,"column":4},"end":{"line":83,"column":5}},"type":"if","locations":[{"start":{"line":65,"column":4},"end":{"line":83,"column":5}},{"start":{"line":65,"column":4},"end":{"line":83,"column":5}}],"line":65},"3":{"loc":{"start":{"line":73,"column":11},"end":{"line":83,"column":5}},"type":"if","locations":[{"start":{"line":73,"column":11},"end":{"line":83,"column":5}},{"start":{"line":73,"column":11},"end":{"line":83,"column":5}}],"line":73},"4":{"loc":{"start":{"line":75,"column":11},"end":{"line":83,"column":5}},"type":"if","locations":[{"start":{"line":75,"column":11},"end":{"line":83,"column":5}},{"start":{"line":75,"column":11},"end":{"line":83,"column":5}}],"line":75},"5":{"loc":{"start":{"line":77,"column":11},"end":{"line":83,"column":5}},"type":"if","locations":[{"start":{"line":77,"column":11},"end":{"line":83,"column":5}},{"start":{"line":77,"column":11},"end":{"line":83,"column":5}}],"line":77},"6":{"loc":{"start":{"line":79,"column":11},"end":{"line":83,"column":5}},"type":"if","locations":[{"start":{"line":79,"column":11},"end":{"line":83,"column":5}},{"start":{"line":79,"column":11},"end":{"line":83,"column":5}}],"line":79},"7":{"loc":{"start":{"line":81,"column":11},"end":{"line":83,"column":5}},"type":"if","locations":[{"start":{"line":81,"column":11},"end":{"line":83,"column":5}},{"start":{"line":81,"column":11},"end":{"line":83,"column":5}}],"line":81},"8":{"loc":{"start":{"line":90,"column":4},"end":{"line":94,"column":5}},"type":"if","locations":[{"start":{"line":90,"column":4},"end":{"line":94,"column":5}},{"start":{"line":90,"column":4},"end":{"line":94,"column":5}}],"line":90},"9":{"loc":{"start":{"line":95,"column":16},"end":{"line":95,"column":37}},"type":"cond-expr","locations":[{"start":{"line":95,"column":23},"end":{"line":95,"column":26}},{"start":{"line":95,"column":29},"end":{"line":95,"column":37}}],"line":95},"10":{"loc":{"start":{"line":102,"column":9},"end":{"line":102,"column":31}},"type":"binary-expr","locations":[{"start":{"line":102,"column":9},"end":{"line":102,"column":17}},{"start":{"line":102,"column":21},"end":{"line":102,"column":31}}],"line":102}},"s":{"0":7,"1":2,"2":11,"3":11,"4":11,"5":11,"6":8,"7":7,"8":1,"9":11,"10":3,"11":2,"12":1,"13":11,"14":11,"15":11,"16":11,"17":11,"18":11,"19":2,"20":2,"21":2,"22":1,"23":9,"24":1,"25":8,"26":1,"27":7,"28":1,"29":6,"30":2,"31":4,"32":1,"33":3,"34":24,"35":24,"36":1,"37":23,"38":23},"f":{"0":7,"1":2,"2":11,"3":8,"4":3,"5":11,"6":2,"7":24},"b":{"0":[7,1],"1":[2,1],"2":[2,9],"3":[1,8],"4":[1,7],"5":[1,6],"6":[2,4],"7":[1,3],"8":[1,23],"9":[0,23],"10":[23,23]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"ebc63aba2cec674524f0fb1c96989c36b62a7da6"}
,"/Users/Sam/Documents/projects/filestack-react/src/ReactFilestack.jsx": {"path":"/Users/Sam/Documents/projects/filestack-react/src/ReactFilestack.jsx","statementMap":{"0":{"start":{"line":11,"column":25},"end":{"line":11,"column":44}},"1":{"start":{"line":12,"column":22},"end":{"line":12,"column":42}},"2":{"start":{"line":38,"column":4},"end":{"line":38,"column":28}},"3":{"start":{"line":39,"column":4},"end":{"line":39,"column":27}},"4":{"start":{"line":49,"column":8},"end":{"line":49,"column":18}},"5":{"start":{"line":50,"column":23},"end":{"line":56,"column":5}},"6":{"start":{"line":51,"column":6},"end":{"line":55,"column":7}},"7":{"start":{"line":52,"column":8},"end":{"line":52,"column":26}},"8":{"start":{"line":54,"column":8},"end":{"line":54,"column":28}},"9":{"start":{"line":57,"column":19},"end":{"line":63,"column":5}},"10":{"start":{"line":58,"column":6},"end":{"line":62,"column":7}},"11":{"start":{"line":59,"column":8},"end":{"line":59,"column":23}},"12":{"start":{"line":61,"column":8},"end":{"line":61,"column":29}},"13":{"start":{"line":65,"column":4},"end":{"line":67,"column":21}},"14":{"start":{"line":71,"column":28},"end":{"line":71,"column":35}},"15":{"start":{"line":72,"column":4},"end":{"line":72,"column":26}},"16":{"start":{"line":73,"column":4},"end":{"line":73,"column":23}},"17":{"start":{"line":74,"column":19},"end":{"line":74,"column":58}},"18":{"start":{"line":76,"column":4},"end":{"line":94,"column":5}},"19":{"start":{"line":77,"column":6},"end":{"line":83,"column":9}},"20":{"start":{"line":78,"column":8},"end":{"line":82,"column":9}},"21":{"start":{"line":79,"column":10},"end":{"line":79,"column":50}},"22":{"start":{"line":81,"column":10},"end":{"line":81,"column":22}},"23":{"start":{"line":84,"column":11},"end":{"line":94,"column":5}},"24":{"start":{"line":85,"column":6},"end":{"line":85,"column":46}},"25":{"start":{"line":86,"column":11},"end":{"line":94,"column":5}},"26":{"start":{"line":87,"column":6},"end":{"line":87,"column":46}},"27":{"start":{"line":88,"column":11},"end":{"line":94,"column":5}},"28":{"start":{"line":89,"column":6},"end":{"line":89,"column":43}},"29":{"start":{"line":90,"column":11},"end":{"line":94,"column":5}},"30":{"start":{"line":91,"column":6},"end":{"line":91,"column":42}},"31":{"start":{"line":92,"column":11},"end":{"line":94,"column":5}},"32":{"start":{"line":93,"column":6},"end":{"line":93,"column":45}},"33":{"start":{"line":96,"column":4},"end":{"line":96,"column":32}},"34":{"start":{"line":100,"column":78},"end":{"line":100,"column":88}},"35":{"start":{"line":101,"column":4},"end":{"line":105,"column":5}},"36":{"start":{"line":102,"column":6},"end":{"line":104,"column":8}},"37":{"start":{"line":106,"column":16},"end":{"line":106,"column":37}},"38":{"start":{"line":107,"column":4},"end":{"line":115,"column":6}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":11,"column":15},"end":{"line":11,"column":16}},"loc":{"start":{"line":11,"column":25},"end":{"line":11,"column":44}},"line":11},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":13},"end":{"line":12,"column":14}},"loc":{"start":{"line":12,"column":22},"end":{"line":12,"column":42}},"line":12},"2":{"name":"(anonymous_2)","decl":{"start":{"line":37,"column":16},"end":{"line":37,"column":17}},"loc":{"start":{"line":37,"column":27},"end":{"line":68,"column":3}},"line":37},"3":{"name":"(anonymous_3)","decl":{"start":{"line":50,"column":23},"end":{"line":50,"column":24}},"loc":{"start":{"line":50,"column":35},"end":{"line":56,"column":5}},"line":50},"4":{"name":"(anonymous_4)","decl":{"start":{"line":57,"column":19},"end":{"line":57,"column":20}},"loc":{"start":{"line":57,"column":30},"end":{"line":63,"column":5}},"line":57},"5":{"name":"(anonymous_5)","decl":{"start":{"line":70,"column":15},"end":{"line":70,"column":16}},"loc":{"start":{"line":70,"column":65},"end":{"line":97,"column":3}},"line":70},"6":{"name":"(anonymous_6)","decl":{"start":{"line":77,"column":25},"end":{"line":77,"column":26}},"loc":{"start":{"line":77,"column":46},"end":{"line":83,"column":7}},"line":77},"7":{"name":"(anonymous_7)","decl":{"start":{"line":99,"column":2},"end":{"line":99,"column":3}},"loc":{"start":{"line":99,"column":12},"end":{"line":116,"column":3}},"line":99}},"branchMap":{"0":{"loc":{"start":{"line":51,"column":6},"end":{"line":55,"column":7}},"type":"if","locations":[{"start":{"line":51,"column":6},"end":{"line":55,"column":7}},{"start":{"line":51,"column":6},"end":{"line":55,"column":7}}],"line":51},"1":{"loc":{"start":{"line":58,"column":6},"end":{"line":62,"column":7}},"type":"if","locations":[{"start":{"line":58,"column":6},"end":{"line":62,"column":7}},{"start":{"line":58,"column":6},"end":{"line":62,"column":7}}],"line":58},"2":{"loc":{"start":{"line":76,"column":4},"end":{"line":94,"column":5}},"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":94,"column":5}},{"start":{"line":76,"column":4},"end":{"line":94,"column":5}}],"line":76},"3":{"loc":{"start":{"line":84,"column":11},"end":{"line":94,"column":5}},"type":"if","locations":[{"start":{"line":84,"column":11},"end":{"line":94,"column":5}},{"start":{"line":84,"column":11},"end":{"line":94,"column":5}}],"line":84},"4":{"loc":{"start":{"line":86,"column":11},"end":{"line":94,"column":5}},"type":"if","locations":[{"start":{"line":86,"column":11},"end":{"line":94,"column":5}},{"start":{"line":86,"column":11},"end":{"line":94,"column":5}}],"line":86},"5":{"loc":{"start":{"line":88,"column":11},"end":{"line":94,"column":5}},"type":"if","locations":[{"start":{"line":88,"column":11},"end":{"line":94,"column":5}},{"start":{"line":88,"column":11},"end":{"line":94,"column":5}}],"line":88},"6":{"loc":{"start":{"line":90,"column":11},"end":{"line":94,"column":5}},"type":"if","locations":[{"start":{"line":90,"column":11},"end":{"line":94,"column":5}},{"start":{"line":90,"column":11},"end":{"line":94,"column":5}}],"line":90},"7":{"loc":{"start":{"line":92,"column":11},"end":{"line":94,"column":5}},"type":"if","locations":[{"start":{"line":92,"column":11},"end":{"line":94,"column":5}},{"start":{"line":92,"column":11},"end":{"line":94,"column":5}}],"line":92},"8":{"loc":{"start":{"line":101,"column":4},"end":{"line":105,"column":5}},"type":"if","locations":[{"start":{"line":101,"column":4},"end":{"line":105,"column":5}},{"start":{"line":101,"column":4},"end":{"line":105,"column":5}}],"line":101},"9":{"loc":{"start":{"line":106,"column":16},"end":{"line":106,"column":37}},"type":"cond-expr","locations":[{"start":{"line":106,"column":23},"end":{"line":106,"column":26}},{"start":{"line":106,"column":29},"end":{"line":106,"column":37}}],"line":106},"10":{"loc":{"start":{"line":113,"column":9},"end":{"line":113,"column":31}},"type":"binary-expr","locations":[{"start":{"line":113,"column":9},"end":{"line":113,"column":17}},{"start":{"line":113,"column":21},"end":{"line":113,"column":31}}],"line":113}},"s":{"0":7,"1":2,"2":11,"3":11,"4":11,"5":11,"6":8,"7":7,"8":1,"9":11,"10":3,"11":2,"12":1,"13":11,"14":11,"15":11,"16":11,"17":11,"18":11,"19":2,"20":2,"21":2,"22":1,"23":9,"24":1,"25":8,"26":1,"27":7,"28":1,"29":6,"30":2,"31":4,"32":1,"33":3,"34":24,"35":24,"36":1,"37":23,"38":23},"f":{"0":7,"1":2,"2":11,"3":8,"4":3,"5":11,"6":2,"7":24},"b":{"0":[7,1],"1":[2,1],"2":[2,9],"3":[1,8],"4":[1,7],"5":[1,6],"6":[2,4],"7":[1,3],"8":[1,23],"9":[0,23],"10":[23,23]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"2889a952dcf74c07f5ebba0e9f7589d2d6e19030"}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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