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

react-jsonschema-form-manager

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-jsonschema-form-manager - npm Package Compare versions

Comparing version 0.2.1 to 0.2.3

2

dist/main.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.JSONSchemaForm=e(require("react")):t.JSONSchemaForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=3)}([function(t,e,r){"use strict";function n(t){return null===t||void 0===t}function o(t){return!(!t||"object"!==(void 0===t?"undefined":a(t))||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function i(t,e,r){var i,l;if(n(t)||n(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return!!f(e)&&(t=u.call(t),e=u.call(e),c(t,e,r));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}try{var p=s(t),d=s(e)}catch(t){return!1}if(p.length!=d.length)return!1;for(p.sort(),d.sort(),i=p.length-1;i>=0;i--)if(p[i]!=d[i])return!1;for(i=p.length-1;i>=0;i--)if(l=p[i],!c(t[l],e[l],r))return!1;return(void 0===t?"undefined":a(t))===(void 0===e?"undefined":a(e))}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=Array.prototype.slice,s=r(6),f=r(7),c=t.exports=function(t,e,r){return r||(r={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=(void 0===t?"undefined":a(t))&&"object"!=(void 0===e?"undefined":a(e))?r.strict?t===e:t==e:i(t,e,r))}},function(t,e,r){"use strict";function n(t){if(void 0!==t&&null!==t&&"object"!==i(this.credentials)&&"function"!=typeof this.credentials)throw new Error("Credentials can be object or function(req)")}function o(t,e){return void 0===e||null===e?fetch(t):"object"===(void 0===e?"undefined":i(e))?fetch(t,e):fetch(e(t))}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.checkCredentials=n,e.fetchWithCredentials=o},function(t,e,r){"use strict";function n(){return{onChange:function(){},stop:function(){}}}function o(t){return{onChange:function(){return t.updateIfChanged()},stop:function(){}}}function i(t){return function(e){var r=setInterval(function(){return e.updateIfChanged()},t);return{onChange:function(){},stop:function(){return clearInterval(r)}}}}Object.defineProperty(e,"__esModule",{value:!0}),e.ignoreUpdateStrategy=n,e.instantUpdateStrategy=o,e.intervalUpdateStrategy=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4);Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var o=r(8);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var i=r(2);Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})});var a=r(10),u=function(t){return t&&t.__esModule?t:{default:t}}(a);e.default=u.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.RESTFormManager=e.LocalStorageFormManager=void 0;var u=r(5),s=n(u),f=r(0),c=n(f),l=r(1),p=function t(){a(this,t)},d="form";e.LocalStorageFormManager=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;a(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.doUpdate=function(){return localStorage.setItem(r.key,JSON.stringify(r.formData)),Promise.resolve(r.formData)},r.submit=function(t){return r.formData=t||r.formData,r.doUpdate()},r.onChange=function(t){var e=t.formData;r.formData=e},r.sameData=function(){if(null!==localStorage.getItem(r.key)){return localStorage.getItem(r.key)===JSON.stringify(r.formData)}return!1},r.updateIfChanged=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||!r.sameData())return r.doUpdate()},r.key=t,r.formData={},r}return i(e,t),e}(p),e.RESTFormManager=function(t){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];a(this,e);var u=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return u.onChange=function(t){var e=t.formData;u.formData=e},u.isSaved=function(){return void 0!==u.formData[u.id]},u.toSubmitRequest=function(t){return new Request(u.url,{method:"POST",body:JSON.stringify(t)})},u.submit=function(t){var e=t||u.formData,r=u.toSubmitRequest(e);return u.formData=e,u.savedFormData=e,(0,l.fetchWithCredentials)(r,u.credentials).then(function(t){return t.json()})},u.toUpdateRequest=function(){return u.isSaved()?u.patch?new Request(u.url,{method:"PATCH",body:s.default.createPatch(u.savedFormData,u.formData)}):new Request(u.url,{method:"PUT",body:JSON.stringify(u.formData)}):u.toSubmitRequest(u.formData)},u.updateIfChanged=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||!(0,c.default)(u.formData,u.savedFormData)){u.savedFormData=u.formData;var t=u.toUpdateRequest();return(0,l.fetchWithCredentials)(t,u.credentials).then(function(t){return t.json()})}},u.url=t,u.id=n,u.patch=i,u.credentials=r,u.formData={},u.savedFormData={},(0,l.checkCredentials)(r),u}return i(e,t),e}(p)},function(t,e,r){"use strict";var n,o,i,a,a,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(r){if("object"===u(e)&&void 0!==t)t.exports=r();else{o=[],n=r,void 0!==(i="function"==typeof n?n.apply(e,o):n)&&(t.exports=i)}}(function(){return function t(e,r,n){function o(u,s){if(!r[u]){if(!e[u]){var f="function"==typeof a&&a;if(!s&&f)return a(u,!0);if(i)return i(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[u]={exports:{}};e[u][0].call(l.exports,function(t){var r=e[u][1][t];return o(r||t)},l,l.exports,t,e,r,n)}return r[u].exports}for(var i="function"==typeof a&&a,u=0;u<n.length;u++)o(n[u]);return o}({1:[function(t,e,r){function n(t){var e=t.op;return"remove"===e||"replace"===e||"copy"===e||"move"===e}function o(t,e){var r={};for(var n in t)r[n]=1;for(var o in e)delete r[o];return Object.keys(r)}function i(t){var e={};t.forEach(function(t){for(var r in t)e[r]=(e[r]||0)+1});var r=t.length;for(var n in e)e[n]<r&&delete e[n];return Object.keys(e)}function a(t){return void 0===t?"undefined":null===t?"null":Array.isArray(t)?"array":void 0===t?"undefined":u(t)}function s(t){return"add"===t.op}function f(t){return"remove"===t.op}function c(t,e,r){function n(r,i){var a=o[r+","+i];if(void 0===a){if(v(t[r-1],e[i-1]))a=n(r-1,i-1);else{var u=[];if(r>0){var s=n(r-1,i);u.push({operations:s.operations.concat({op:"remove",index:r-1}),cost:s.cost+1})}if(i>0){var f=n(r,i-1);u.push({operations:f.operations.concat({op:"add",index:r-1,value:e[i-1]}),cost:f.cost+1})}if(r>0&&i>0){var c=n(r-1,i-1);u.push({operations:c.operations.concat({op:"replace",index:r-1,original:t[r-1],value:e[i-1]}),cost:c.cost+1})}a=u.sort(function(t,e){return t.cost-e.cost})[0]}o[r+","+i]=a}return a}var o={"0,0":{operations:[],cost:0}},i=isNaN(t.length)||t.length<=0?0:t.length,a=isNaN(e.length)||e.length<=0?0:e.length,u=n(i,a).operations,c=u.reduce(function(t,e){var n=h(t,2),o=n[0],a=n[1];if(s(e)){var u=e.index+1+a,c=u<i+a?String(u):"-",l={op:e.op,path:r.add(c).toString(),value:e.value};return[o.concat(l),a+1]}if(f(e)){var l={op:e.op,path:r.add(String(e.index+a)).toString()};return[o.concat(l),a-1]}var p=r.add(String(e.index+a)),v=d(e.original,e.value,p);return[o.concat.apply(o,y(v)),a]},[[],0]),l=h(c,2),p=l[0];l[1];return p}function l(t,e,r){var n=[];return o(t,e).forEach(function(t){n.push({op:"remove",path:r.add(t).toString()})}),o(e,t).forEach(function(t){n.push({op:"add",path:r.add(t).toString(),value:e[t]})}),i([t,e]).forEach(function(o){n.push.apply(n,y(d(t[o],e[o],r.add(o))))}),n}function p(t,e,r){return v(t,e)?[]:[{op:"replace",path:r.toString(),value:e}]}function d(t,e,r){var n=a(t),o=a(e);return"array"==n&&"array"==o?c(t,e,r):"object"==n&&"object"==o?l(t,e,r):p(t,e,r)}var h=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){for(var r,n=[],o=t[Symbol.iterator]();!(r=o.next()).done&&(n.push(r.value),!e||n.length!==e););return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)};r.isDestructive=n,r.subtract=o,r.intersection=i,r.objectType=a,r.diffArrays=c,r.diffObjects=l,r.diffValues=p,r.diffAny=d,Object.defineProperty(r,"__esModule",{value:!0});var v=t("./equal").compare},{"./equal":2}],2:[function(t,e,r){function n(t,e){for(var r=[],n=0,o=t.length;n<o;n++)r.push([t[n],e[n]]);return r}function o(t,e){return t.length===e.length&&n(t,e).every(function(t){return a(t[0],t[1])})}function i(t,e){var r=Object.keys(t);return!!o(r,Object.keys(e))&&r.every(function(r){return a(t[r],e[r])})}function a(t,e){return t===e||(Array.isArray(t)&&Array.isArray(e)?o(t,e):Object(t)===t&&Object(e)===e&&i(t,e))}r.compare=a,Object.defineProperty(r,"__esModule",{value:!0})},{}],3:[function(t,e,r){var n=function t(e,r,n){var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o&&o.writable)return o.value;var a=o.get;if(void 0!==a)return a.call(n)},o=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":u(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)},i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(r,"__esModule",{value:!0});r.MissingError=function(t){function e(t){i(this,e),n(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,"Value required at path: "+t),this.path=t,this.name=this.constructor.name}return o(e,t),e}(Error),r.InvalidOperationError=function(t){function e(t){i(this,e),n(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,"Invalid operation: "+t),this.op=t,this.name=this.constructor.name}return o(e,t),e}(Error),r.TestError=function(t){function e(t,r){i(this,e),n(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,"Test failed: "+t+" != "+r),this.actual=t,this.expected=r,this.name=this.constructor.name,this.actual=t,this.expected=r}return o(e,t),e}(Error)},{}],4:[function(t,e,r){function n(t,e){return e.map(function(e){var r=f[e.op];return void 0===r?new u(e.op):r(t,e)})}function o(t,e){var r=new s;return l(t,e,r)}function i(t,e){var r=s.fromJSON(e).evaluate(t);if(void 0!==r)return{op:"test",path:e,value:r.value}}function a(t,e){var r=new Array;return e.filter(p).forEach(function(e){var n=i(t,e.path);if(n&&r.push(n),"from"in e){var o=i(t,e.from);o&&r.push(o)}}),r}r.applyPatch=n,r.createPatch=o,r.createTests=a,Object.defineProperty(r,"__esModule",{value:!0});var u=t("./errors").InvalidOperationError,s=t("./pointer").Pointer,f=function(t){return t&&t.__esModule?t:{default:t}}(t("./patch")),c=t("./diff"),l=c.diffAny,p=c.isDestructive},{"./diff":1,"./errors":3,"./patch":5,"./pointer":6}],5:[function(t,e,r){function n(t,e,r){Array.isArray(t)?"-"==e?t.push(r):t.splice(e,0,r):t[e]=r}function o(t,e){Array.isArray(t)?t.splice(e,1):delete t[e]}function i(t,e){var r=l.fromJSON(e.path).evaluate(t);return void 0===r.parent?new h(e.path):(n(r.parent,r.key,e.value),null)}function a(t,e){var r=l.fromJSON(e.path).evaluate(t);return void 0===r.value?new h(e.path):(o(r.parent,r.key),null)}function u(t,e){var r=l.fromJSON(e.path).evaluate(t);return void 0===r.value?new h(e.path):(r.parent[r.key]=e.value,null)}function s(t,e){var r=l.fromJSON(e.from).evaluate(t);if(void 0===r.value)return new h(e.from);var i=l.fromJSON(e.path).evaluate(t);return void 0===i.parent?new h(e.path):(o(r.parent,r.key),n(i.parent,i.key,r.value),null)}function f(t,e){var r=l.fromJSON(e.from).evaluate(t);if(void 0===r.value)return new h(e.from);var i=l.fromJSON(e.path).evaluate(t);return void 0===i.parent?new h(e.path):(o(r.parent,r.key),n(i.parent,i.key,r.value),null)}function c(t,e){var r=l.fromJSON(e.path).evaluate(t);return p(r.value,e.value)?null:new y(r.value,e.value)}r.add=i,r.remove=a,r.replace=u,r.move=s,r.copy=f,r.test=c,Object.defineProperty(r,"__esModule",{value:!0});var l=t("./pointer").Pointer,p=t("./equal").compare,d=t("./errors"),h=d.MissingError,y=d.TestError},{"./equal":2,"./errors":3,"./pointer":6}],6:[function(t,e,r){function n(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function o(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}var i=function(){function t(t,e){for(var r in e){var n=e[r];n.configurable=!0,n.value&&(n.writable=!0)}Object.defineProperties(t,e)}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(r,"__esModule",{value:!0});r.Pointer=function(){function t(){var e=void 0===arguments[0]?[""]:arguments[0];a(this,t),this.tokens=e}return i(t,{toString:{value:function(){return this.tokens.map(o).join("/")}},evaluate:{value:function(t){for(var e=null,r=null,n=1,o=this.tokens.length;n<o;n++)e=t,r=this.tokens[n],t=(e||{})[r];return{parent:e,key:r,value:t}}},push:{value:function(t){this.tokens.push(t)}},add:{value:function(e){return new t(this.tokens.concat(String(e)))}}},{fromJSON:{value:function(e){var r=e.split("/").map(n);if(""!==r[0])throw new Error("Invalid JSON Pointer: "+e);return new t(r)}}}),t}()},{}]},{},[4])(4)})},function(t,e,r){"use strict";function n(t){var e=[];for(var r in t)e.push(r);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e,r){"use strict";function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=a?n:o,e.supported=n,e.unsupported=o},function(t,e,r){"use strict";function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.RESTConfigResolver=e.StaticConfigResolver=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};r(9);var u=r(1),s=function t(){i(this,t)};e.StaticConfigResolver=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,e);var o=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.resolve=function(){return new Promise(function(t){setTimeout(function(){return t(o.configs)},o.delay)})},o.configs=t,o.delay=r,o}return o(e,t),e}(s),e.RESTConfigResolver=function(t){function e(t,r,o){i(this,e);var s=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(s.processResponse=function(t){var e=s;return 200!=t.status?t.json().then(function(t){return Promise.reject(new Error(t))}):t.json().then(function(t){var r={};return Object.assign(r,e.defaults,t),r}).catch(function(t){return t})},s.resolve=function(){return(0,u.fetchWithCredentials)(new Request(s.url),s.credentials).then(s.processResponse)},s.url=t,s.credentials=r,s.defaults=o||{},void 0!==r&&null!==r&&"object"!==a(s.credentials)&&"function"!=typeof s.credentials)throw new Error("Credentials can be object or function(req)");return s}return o(e,t),e}(s)},function(t,e,r){"use strict";!function(t){function e(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function n(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return b.iterable&&(e[Symbol.iterator]=function(){return e}),e}function o(t){this.map={},t instanceof o?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function i(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function a(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function u(t){var e=new FileReader,r=a(e);return e.readAsArrayBuffer(t),r}function s(t){var e=new FileReader,r=a(e);return e.readAsText(t),r}function f(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}function c(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function l(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(b.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(b.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(b.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(b.arrayBuffer&&b.blob&&g(t))this._bodyArrayBuffer=c(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!b.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t)&&!O(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):b.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},b.blob&&(this.blob=function(){var t=i(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?i(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var t=i(this);if(t)return t;if(this._bodyBlob)return s(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(f(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},b.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function p(t){var e=t.toUpperCase();return _.indexOf(e)>-1?e:t}function d(t,e){e=e||{};var r=e.body;if(t instanceof d){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new o(t.headers)),this.method=t.method,this.mode=t.mode,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new o(e.headers)),this.method=p(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function h(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function y(t){var e=new o;return t.split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}}),e}function v(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new o(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var b={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(b.arrayBuffer)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=function(t){return t&&DataView.prototype.isPrototypeOf(t)},O=ArrayBuffer.isView||function(t){return t&&m.indexOf(Object.prototype.toString.call(t))>-1};o.prototype.append=function(t,n){t=e(t),n=r(n);var o=this.map[t];this.map[t]=o?o+","+n:n},o.prototype.delete=function(t){delete this.map[e(t)]},o.prototype.get=function(t){return t=e(t),this.has(t)?this.map[t]:null},o.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},o.prototype.set=function(t,n){this.map[e(t)]=r(n)},o.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},o.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),n(t)},o.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),n(t)},o.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),n(t)},b.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},l.call(d.prototype),l.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},v.error=function(){var t=new v(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];v.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new v(null,{status:e,headers:{location:t}})},t.Headers=o,t.Request=d,t.Response=v,t.fetch=function(t,e){return new Promise(function(r,n){var o=new d(t,e),i=new XMLHttpRequest;i.onload=function(){var t={status:i.status,statusText:i.statusText,headers:y(i.getAllResponseHeaders()||"")};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL");var e="response"in i?i.response:i.responseText;r(new v(e,t))},i.onerror=function(){n(new TypeError("Network request failed"))},i.ontimeout=function(){n(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&b.blob&&(i.responseType="blob"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:void 0)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(){return d.default.createElement("div",{className:"container"},d.default.createElement("h1",null,"Loading"))}function s(t){var e=t.error.message;return d.default.createElement("div",{className:"container"},d.default.createElement("h4",null,"Error"),d.default.createElement("h2",null,e))}function f(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.ignoreUpdateStrategy;r=r(e),y.default.checkPropTypes(g,{manager:e,configResolver:t,updateStrategy:r},"props","react-jsonschema-form-manager");var n=e.updateIfChanged;return e.updateIfChanged=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=n(t);return r&&r.then(function(t){return e.onUpdate(t)}),r},function(n,f,h){return function(p){function y(n){o(this,y);var a=i(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,n));return a.updateExternal=function(t,e){a.formData=t.formData,a.setState({formData:t.formData}),e&&e(t)},a.handleChange=function(t){e.onChange(t),r.onChange(t),a.updateExternal(t,a.props.onChange)},a.handleSubmit=function(t){e.submit(t.formData).then(function(){a.updateExternal(t,a.props.onSubmit)})},a.handleUpdate=function(t){a.setState({formData:t}),a.props.onUpdate&&a.props.onUpdate(t)},a.state={isLoading:!0,isError:!1},e.onUpdate=a.handleUpdate,t.resolve().then(function(t){a.setState({isLoading:!1,isEqual:!1,config:t,formData:t.formData})}).catch(function(t){a.setState({isLoading:!1,isError:!0,error:t})}),a}return a(y,p),l(y,[{key:"componentWillUnmount",value:function(){e.stop()}},{key:"shouldComponentUpdate",value:function(t,e){var r=(0,b.default)(e.formData,this.formData),n=e.isLoading===this.state.isLoading&&e.isError===this.state.isError;return!(0,b.default)(this.props,t)||!r||!n}},{key:"render",value:function(){var t=this.state,e=t.isLoading,r=t.isError,o=t.error,i=t.config,a=t.formData;if(e)return f?d.default.createElement(f,null):d.default.createElement(u,null);if(r)return h?d.default.createElement(h,{error:o}):d.default.createElement(s,{error:o});var l=Object.assign({},this.props,i,{formData:a});return d.default.createElement(n,c({},l,{onSubmit:this.handleSubmit,onChange:this.handleChange}))}}]),y}(p.Component)}}Object.defineProperty(e,"__esModule",{value:!0});var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.default=f;var p=r(11),d=n(p),h=r(12),y=n(h),v=r(0),b=n(v),m=r(2),g={configResolver:y.default.shape({resolve:y.default.func.isRequired}).isRequired,manager:y.default.shape({onChange:y.default.func.isRequired,submit:y.default.func.isRequired,updateIfChanged:y.default.func.isRequired}).isRequired,updateStrategy:y.default.shape({onChange:y.default.func.isRequired,stop:y.default.func.isRequired}).isRequired}},function(e,r){e.exports=t},function(t,e,r){"use strict";"function"==typeof Symbol&&Symbol.iterator;t.exports=r(13)()},function(t,e,r){"use strict";var n=r(14),o=r(15),i=r(16);t.exports=function(){function t(t,e,r,n,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return r.checkPropTypes=n,r.PropTypes=r,r}},function(t,e,r){"use strict";function n(t){return function(){return t}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,r){"use strict";function n(t,e,r,n,i,a,u,s){if(o(e),!t){var f;if(void 0===e)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,a,u,s],l=0;f=new Error(e.replace(/%s/g,function(){return c[l++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}}var o=function(t){};t.exports=n},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.JSONSchemaForm=e(require("react")):t.JSONSchemaForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=3)}([function(t,e,r){"use strict";function n(t){return null===t||void 0===t}function o(t){return!(!t||"object"!==(void 0===t?"undefined":a(t))||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function i(t,e,r){var i,l;if(n(t)||n(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return!!f(e)&&(t=u.call(t),e=u.call(e),c(t,e,r));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}try{var p=s(t),d=s(e)}catch(t){return!1}if(p.length!=d.length)return!1;for(p.sort(),d.sort(),i=p.length-1;i>=0;i--)if(p[i]!=d[i])return!1;for(i=p.length-1;i>=0;i--)if(l=p[i],!c(t[l],e[l],r))return!1;return(void 0===t?"undefined":a(t))===(void 0===e?"undefined":a(e))}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=Array.prototype.slice,s=r(6),f=r(7),c=t.exports=function(t,e,r){return r||(r={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=(void 0===t?"undefined":a(t))&&"object"!=(void 0===e?"undefined":a(e))?r.strict?t===e:t==e:i(t,e,r))}},function(t,e,r){"use strict";function n(t){if(void 0!==t&&null!==t&&"object"!==i(this.credentials)&&"function"!=typeof this.credentials)throw new Error("Credentials can be object or function(req)")}function o(t,e){return void 0===e||null===e?fetch(t):"object"===(void 0===e?"undefined":i(e))?fetch(t,e):fetch(e(t))}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.checkCredentials=n,e.fetchWithCredentials=o},function(t,e,r){"use strict";function n(){return{onChange:function(){},stop:function(){}}}function o(t){return{onChange:function(){return t.updateIfChanged()},stop:function(){}}}function i(t){return function(e){var r=setInterval(function(){return e.updateIfChanged()},t);return{onChange:function(){},stop:function(){return clearInterval(r)}}}}Object.defineProperty(e,"__esModule",{value:!0}),e.ignoreUpdateStrategy=n,e.instantUpdateStrategy=o,e.intervalUpdateStrategy=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4);Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var o=r(8);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var i=r(2);Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})});var a=r(10),u=function(t){return t&&t.__esModule?t:{default:t}}(a);e.default=u.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.RESTFormManager=e.LocalStorageFormManager=void 0;var u=r(5),s=n(u),f=r(0),c=n(f),l=r(1),p=function t(){a(this,t)},d="form";e.LocalStorageFormManager=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;a(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.doUpdate=function(){return localStorage.setItem(r.key,JSON.stringify(r.formData)),Promise.resolve(r.formData)},r.submit=function(t){return r.formData=t||r.formData,r.doUpdate()},r.onChange=function(t){var e=t.formData;r.formData=e},r.sameData=function(){if(null!==localStorage.getItem(r.key)){return localStorage.getItem(r.key)===JSON.stringify(r.formData)}return!1},r.updateIfChanged=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||!r.sameData())return r.doUpdate()},r.key=t,r.formData={},r}return i(e,t),e}(p),e.RESTFormManager=function(t){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];a(this,e);var u=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return u.onChange=function(t){var e=t.formData;u.formData=e},u.isSaved=function(){return void 0!==u.formData[u.id]},u.toSubmitRequest=function(t){return new Request(u.url,{method:"POST",body:JSON.stringify(t)})},u.submit=function(t){var e=t||u.formData,r=u.toSubmitRequest(e);return u.formData=e,u.savedFormData=e,(0,l.fetchWithCredentials)(r,u.credentials).then(function(t){return t.json()})},u.toUpdateRequest=function(){return u.isSaved()?u.patch?new Request(u.url,{method:"PATCH",body:s.default.createPatch(u.savedFormData,u.formData)}):new Request(u.url,{method:"PUT",body:JSON.stringify(u.formData)}):u.toSubmitRequest(u.formData)},u.updateIfChanged=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||!(0,c.default)(u.formData,u.savedFormData)){u.savedFormData=u.formData;var t=u.toUpdateRequest();return(0,l.fetchWithCredentials)(t,u.credentials).then(function(t){return t.json()})}},u.url=t,u.id=n,u.patch=i,u.credentials=r,u.formData={},u.savedFormData={},(0,l.checkCredentials)(r),u}return i(e,t),e}(p)},function(t,e,r){"use strict";var n,o,i,a,a,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(r){if("object"===u(e)&&void 0!==t)t.exports=r();else{o=[],n=r,void 0!==(i="function"==typeof n?n.apply(e,o):n)&&(t.exports=i)}}(function(){return function t(e,r,n){function o(u,s){if(!r[u]){if(!e[u]){var f="function"==typeof a&&a;if(!s&&f)return a(u,!0);if(i)return i(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[u]={exports:{}};e[u][0].call(l.exports,function(t){var r=e[u][1][t];return o(r||t)},l,l.exports,t,e,r,n)}return r[u].exports}for(var i="function"==typeof a&&a,u=0;u<n.length;u++)o(n[u]);return o}({1:[function(t,e,r){function n(t){var e=t.op;return"remove"===e||"replace"===e||"copy"===e||"move"===e}function o(t,e){var r={};for(var n in t)r[n]=1;for(var o in e)delete r[o];return Object.keys(r)}function i(t){var e={};t.forEach(function(t){for(var r in t)e[r]=(e[r]||0)+1});var r=t.length;for(var n in e)e[n]<r&&delete e[n];return Object.keys(e)}function a(t){return void 0===t?"undefined":null===t?"null":Array.isArray(t)?"array":void 0===t?"undefined":u(t)}function s(t){return"add"===t.op}function f(t){return"remove"===t.op}function c(t,e,r){function n(r,i){var a=o[r+","+i];if(void 0===a){if(v(t[r-1],e[i-1]))a=n(r-1,i-1);else{var u=[];if(r>0){var s=n(r-1,i);u.push({operations:s.operations.concat({op:"remove",index:r-1}),cost:s.cost+1})}if(i>0){var f=n(r,i-1);u.push({operations:f.operations.concat({op:"add",index:r-1,value:e[i-1]}),cost:f.cost+1})}if(r>0&&i>0){var c=n(r-1,i-1);u.push({operations:c.operations.concat({op:"replace",index:r-1,original:t[r-1],value:e[i-1]}),cost:c.cost+1})}a=u.sort(function(t,e){return t.cost-e.cost})[0]}o[r+","+i]=a}return a}var o={"0,0":{operations:[],cost:0}},i=isNaN(t.length)||t.length<=0?0:t.length,a=isNaN(e.length)||e.length<=0?0:e.length,u=n(i,a).operations,c=u.reduce(function(t,e){var n=h(t,2),o=n[0],a=n[1];if(s(e)){var u=e.index+1+a,c=u<i+a?String(u):"-",l={op:e.op,path:r.add(c).toString(),value:e.value};return[o.concat(l),a+1]}if(f(e)){var l={op:e.op,path:r.add(String(e.index+a)).toString()};return[o.concat(l),a-1]}var p=r.add(String(e.index+a)),v=d(e.original,e.value,p);return[o.concat.apply(o,y(v)),a]},[[],0]),l=h(c,2),p=l[0];l[1];return p}function l(t,e,r){var n=[];return o(t,e).forEach(function(t){n.push({op:"remove",path:r.add(t).toString()})}),o(e,t).forEach(function(t){n.push({op:"add",path:r.add(t).toString(),value:e[t]})}),i([t,e]).forEach(function(o){n.push.apply(n,y(d(t[o],e[o],r.add(o))))}),n}function p(t,e,r){return v(t,e)?[]:[{op:"replace",path:r.toString(),value:e}]}function d(t,e,r){var n=a(t),o=a(e);return"array"==n&&"array"==o?c(t,e,r):"object"==n&&"object"==o?l(t,e,r):p(t,e,r)}var h=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){for(var r,n=[],o=t[Symbol.iterator]();!(r=o.next()).done&&(n.push(r.value),!e||n.length!==e););return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)};r.isDestructive=n,r.subtract=o,r.intersection=i,r.objectType=a,r.diffArrays=c,r.diffObjects=l,r.diffValues=p,r.diffAny=d,Object.defineProperty(r,"__esModule",{value:!0});var v=t("./equal").compare},{"./equal":2}],2:[function(t,e,r){function n(t,e){for(var r=[],n=0,o=t.length;n<o;n++)r.push([t[n],e[n]]);return r}function o(t,e){return t.length===e.length&&n(t,e).every(function(t){return a(t[0],t[1])})}function i(t,e){var r=Object.keys(t);return!!o(r,Object.keys(e))&&r.every(function(r){return a(t[r],e[r])})}function a(t,e){return t===e||(Array.isArray(t)&&Array.isArray(e)?o(t,e):Object(t)===t&&Object(e)===e&&i(t,e))}r.compare=a,Object.defineProperty(r,"__esModule",{value:!0})},{}],3:[function(t,e,r){var n=function t(e,r,n){var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o&&o.writable)return o.value;var a=o.get;if(void 0!==a)return a.call(n)},o=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":u(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)},i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(r,"__esModule",{value:!0});r.MissingError=function(t){function e(t){i(this,e),n(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,"Value required at path: "+t),this.path=t,this.name=this.constructor.name}return o(e,t),e}(Error),r.InvalidOperationError=function(t){function e(t){i(this,e),n(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,"Invalid operation: "+t),this.op=t,this.name=this.constructor.name}return o(e,t),e}(Error),r.TestError=function(t){function e(t,r){i(this,e),n(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,"Test failed: "+t+" != "+r),this.actual=t,this.expected=r,this.name=this.constructor.name,this.actual=t,this.expected=r}return o(e,t),e}(Error)},{}],4:[function(t,e,r){function n(t,e){return e.map(function(e){var r=f[e.op];return void 0===r?new u(e.op):r(t,e)})}function o(t,e){var r=new s;return l(t,e,r)}function i(t,e){var r=s.fromJSON(e).evaluate(t);if(void 0!==r)return{op:"test",path:e,value:r.value}}function a(t,e){var r=new Array;return e.filter(p).forEach(function(e){var n=i(t,e.path);if(n&&r.push(n),"from"in e){var o=i(t,e.from);o&&r.push(o)}}),r}r.applyPatch=n,r.createPatch=o,r.createTests=a,Object.defineProperty(r,"__esModule",{value:!0});var u=t("./errors").InvalidOperationError,s=t("./pointer").Pointer,f=function(t){return t&&t.__esModule?t:{default:t}}(t("./patch")),c=t("./diff"),l=c.diffAny,p=c.isDestructive},{"./diff":1,"./errors":3,"./patch":5,"./pointer":6}],5:[function(t,e,r){function n(t,e,r){Array.isArray(t)?"-"==e?t.push(r):t.splice(e,0,r):t[e]=r}function o(t,e){Array.isArray(t)?t.splice(e,1):delete t[e]}function i(t,e){var r=l.fromJSON(e.path).evaluate(t);return void 0===r.parent?new h(e.path):(n(r.parent,r.key,e.value),null)}function a(t,e){var r=l.fromJSON(e.path).evaluate(t);return void 0===r.value?new h(e.path):(o(r.parent,r.key),null)}function u(t,e){var r=l.fromJSON(e.path).evaluate(t);return void 0===r.value?new h(e.path):(r.parent[r.key]=e.value,null)}function s(t,e){var r=l.fromJSON(e.from).evaluate(t);if(void 0===r.value)return new h(e.from);var i=l.fromJSON(e.path).evaluate(t);return void 0===i.parent?new h(e.path):(o(r.parent,r.key),n(i.parent,i.key,r.value),null)}function f(t,e){var r=l.fromJSON(e.from).evaluate(t);if(void 0===r.value)return new h(e.from);var i=l.fromJSON(e.path).evaluate(t);return void 0===i.parent?new h(e.path):(o(r.parent,r.key),n(i.parent,i.key,r.value),null)}function c(t,e){var r=l.fromJSON(e.path).evaluate(t);return p(r.value,e.value)?null:new y(r.value,e.value)}r.add=i,r.remove=a,r.replace=u,r.move=s,r.copy=f,r.test=c,Object.defineProperty(r,"__esModule",{value:!0});var l=t("./pointer").Pointer,p=t("./equal").compare,d=t("./errors"),h=d.MissingError,y=d.TestError},{"./equal":2,"./errors":3,"./pointer":6}],6:[function(t,e,r){function n(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function o(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}var i=function(){function t(t,e){for(var r in e){var n=e[r];n.configurable=!0,n.value&&(n.writable=!0)}Object.defineProperties(t,e)}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(r,"__esModule",{value:!0});r.Pointer=function(){function t(){var e=void 0===arguments[0]?[""]:arguments[0];a(this,t),this.tokens=e}return i(t,{toString:{value:function(){return this.tokens.map(o).join("/")}},evaluate:{value:function(t){for(var e=null,r=null,n=1,o=this.tokens.length;n<o;n++)e=t,r=this.tokens[n],t=(e||{})[r];return{parent:e,key:r,value:t}}},push:{value:function(t){this.tokens.push(t)}},add:{value:function(e){return new t(this.tokens.concat(String(e)))}}},{fromJSON:{value:function(e){var r=e.split("/").map(n);if(""!==r[0])throw new Error("Invalid JSON Pointer: "+e);return new t(r)}}}),t}()},{}]},{},[4])(4)})},function(t,e,r){"use strict";function n(t){var e=[];for(var r in t)e.push(r);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e,r){"use strict";function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==(void 0===t?"undefined":i(t))&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=a?n:o,e.supported=n,e.unsupported=o},function(t,e,r){"use strict";function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.RESTConfigResolver=e.StaticConfigResolver=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};r(9);var u=r(1),s=function t(){i(this,t)};e.StaticConfigResolver=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,e);var o=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.resolve=function(){return new Promise(function(t){setTimeout(function(){return t(o.configs)},o.delay)})},o.configs=t,o.delay=r,o}return o(e,t),e}(s),e.RESTConfigResolver=function(t){function e(t,r,o,s){i(this,e);var f=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));f.processResponse=function(t){var e=f;return 200!=t.status?t.json().then(function(t){return Promise.reject(new Error(t))}):t.json().then(function(t){var r={};return Object.assign(r,e.defaults,t),r}).then(f.mapHandler).catch(function(t){return t})},f.resolve=function(){return(0,u.fetchWithCredentials)(new Request(f.url),f.credentials).then(f.processResponse)};var c=function(t){return t};if(f.url=t,f.credentials=r,f.defaults=o||{},f.mapHandler=s||c,void 0!==r&&null!==r&&"object"!==a(f.credentials)&&"function"!=typeof f.credentials)throw new Error("Credentials can be object or function(req)");return f}return o(e,t),e}(s)},function(t,e,r){"use strict";!function(t){function e(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function n(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return b.iterable&&(e[Symbol.iterator]=function(){return e}),e}function o(t){this.map={},t instanceof o?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function i(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function a(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function u(t){var e=new FileReader,r=a(e);return e.readAsArrayBuffer(t),r}function s(t){var e=new FileReader,r=a(e);return e.readAsText(t),r}function f(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}function c(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function l(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(b.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(b.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(b.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(b.arrayBuffer&&b.blob&&g(t))this._bodyArrayBuffer=c(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!b.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t)&&!O(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):b.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},b.blob&&(this.blob=function(){var t=i(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?i(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var t=i(this);if(t)return t;if(this._bodyBlob)return s(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(f(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},b.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function p(t){var e=t.toUpperCase();return _.indexOf(e)>-1?e:t}function d(t,e){e=e||{};var r=e.body;if(t instanceof d){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new o(t.headers)),this.method=t.method,this.mode=t.mode,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new o(e.headers)),this.method=p(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function h(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function y(t){var e=new o;return t.split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}}),e}function v(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new o(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var b={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(b.arrayBuffer)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=function(t){return t&&DataView.prototype.isPrototypeOf(t)},O=ArrayBuffer.isView||function(t){return t&&m.indexOf(Object.prototype.toString.call(t))>-1};o.prototype.append=function(t,n){t=e(t),n=r(n);var o=this.map[t];this.map[t]=o?o+","+n:n},o.prototype.delete=function(t){delete this.map[e(t)]},o.prototype.get=function(t){return t=e(t),this.has(t)?this.map[t]:null},o.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},o.prototype.set=function(t,n){this.map[e(t)]=r(n)},o.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},o.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),n(t)},o.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),n(t)},o.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),n(t)},b.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},l.call(d.prototype),l.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},v.error=function(){var t=new v(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];v.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new v(null,{status:e,headers:{location:t}})},t.Headers=o,t.Request=d,t.Response=v,t.fetch=function(t,e){return new Promise(function(r,n){var o=new d(t,e),i=new XMLHttpRequest;i.onload=function(){var t={status:i.status,statusText:i.statusText,headers:y(i.getAllResponseHeaders()||"")};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL");var e="response"in i?i.response:i.responseText;r(new v(e,t))},i.onerror=function(){n(new TypeError("Network request failed"))},i.ontimeout=function(){n(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&b.blob&&(i.responseType="blob"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:void 0)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(){return d.default.createElement("div",{className:"container"},d.default.createElement("h1",null,"Loading"))}function s(t){var e=t.error.message;return d.default.createElement("div",{className:"container"},d.default.createElement("h4",null,"Error"),d.default.createElement("h2",null,e))}function f(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.ignoreUpdateStrategy;r=r(e),y.default.checkPropTypes(g,{manager:e,configResolver:t,updateStrategy:r},"props","react-jsonschema-form-manager");var n=e.updateIfChanged;return e.updateIfChanged=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=n(t);return r&&r.then(function(t){return e.onUpdate(t)}),r},function(n,f,h){return function(p){function y(n){o(this,y);var a=i(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,n));return a.updateExternal=function(t,e){a.formData=t.formData,a.setState({formData:t.formData}),e&&e(t)},a.handleChange=function(t){e.onChange(t),r.onChange(t),a.updateExternal(t,a.props.onChange)},a.handleSubmit=function(t){e.submit(t.formData).then(function(){a.updateExternal(t,a.props.onSubmit)})},a.handleUpdate=function(t){a.setState({formData:t}),a.props.onUpdate&&a.props.onUpdate(t)},a.state={isLoading:!0,isError:!1},e.onUpdate=a.handleUpdate,t.resolve().then(function(t){a.setState({isLoading:!1,isEqual:!1,config:t,formData:t.formData})}).catch(function(t){a.setState({isLoading:!1,isError:!0,error:t})}),a}return a(y,p),l(y,[{key:"componentWillUnmount",value:function(){e.stop()}},{key:"shouldComponentUpdate",value:function(t,e){var r=(0,b.default)(e.formData,this.formData),n=e.isLoading===this.state.isLoading&&e.isError===this.state.isError;return!(0,b.default)(this.props,t)||!r||!n}},{key:"render",value:function(){var t=this.state,e=t.isLoading,r=t.isError,o=t.error,i=t.config,a=t.formData;if(e)return f?d.default.createElement(f,null):d.default.createElement(u,null);if(r)return h?d.default.createElement(h,{error:o}):d.default.createElement(s,{error:o});var l=Object.assign({},this.props,i,{formData:a});return d.default.createElement(n,c({},l,{onSubmit:this.handleSubmit,onChange:this.handleChange}))}}]),y}(p.Component)}}Object.defineProperty(e,"__esModule",{value:!0});var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.default=f;var p=r(11),d=n(p),h=r(12),y=n(h),v=r(0),b=n(v),m=r(2),g={configResolver:y.default.shape({resolve:y.default.func.isRequired}).isRequired,manager:y.default.shape({onChange:y.default.func.isRequired,submit:y.default.func.isRequired,updateIfChanged:y.default.func.isRequired}).isRequired,updateStrategy:y.default.shape({onChange:y.default.func.isRequired,stop:y.default.func.isRequired}).isRequired}},function(e,r){e.exports=t},function(t,e,r){"use strict";"function"==typeof Symbol&&Symbol.iterator;t.exports=r(13)()},function(t,e,r){"use strict";var n=r(14),o=r(15),i=r(16);t.exports=function(){function t(t,e,r,n,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return r.checkPropTypes=n,r.PropTypes=r,r}},function(t,e,r){"use strict";function n(t){return function(){return t}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,r){"use strict";function n(t,e,r,n,i,a,u,s){if(o(e),!t){var f;if(void 0===e)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,a,u,s],l=0;f=new Error(e.replace(/%s/g,function(){return c[l++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}}var o=function(t){};t.exports=n},function(t,e,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])});
//# sourceMappingURL=main.js.map

@@ -53,3 +53,3 @@ "use strict";

function RESTConfigResolver(url, credentials, defaults) {
function RESTConfigResolver(url, credentials, defaults, mapHandler) {
_classCallCheck(this, RESTConfigResolver);

@@ -71,3 +71,3 @@

return mergedConf;
}).catch(function (ex) {
}).then(_this2.mapHandler).catch(function (ex) {
return ex;

@@ -81,5 +81,11 @@ });

var inactiveMapHandler = function inactiveMapHandler(obj) {
return obj;
};
_this2.url = url;
_this2.credentials = credentials;
_this2.defaults = defaults || {};
_this2.mapHandler = mapHandler || inactiveMapHandler;
if (credentials !== undefined && credentials !== null && _typeof(_this2.credentials) !== "object" && typeof _this2.credentials !== "function") {

@@ -86,0 +92,0 @@ throw new Error("Credentials can be object or function(req)");

@@ -6,3 +6,3 @@ {

"author": "mavarazy@gmail.com",
"version": "0.2.1",
"version": "0.2.3",
"scripts": {

@@ -20,2 +20,4 @@ "build:lib": "rimraf lib && cross-env NODE_ENV=production babel -d lib/ src/",

"start": "webpack-dev-server",
"test-api:start": "json-server ./test/test-server.json & npm run lint",
"test-api:stop": "ps -ef | grep -i json-server | grep -i node | awk '{print $2;}' | xargs kill",
"tdd": "jest --watchAll",

@@ -26,3 +28,6 @@ "test": "jest"

"verbose": true,
"collectCoverage": true
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{js,jsx}"
]
},

@@ -92,2 +97,3 @@ "prettierOptions": "--jsx-bracket-same-line --trailing-comma es5 --semi",

"json-rules-engine": "^2.0.2",
"json-server": "^0.12.0",
"lint-staged": "^4.1.3",

@@ -94,0 +100,0 @@ "prettier": "^1.6.1",

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