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

@htmlguyllc/jpack

Package Overview
Dependencies
Maintainers
1
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@htmlguyllc/jpack - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

dist/jpack.min.js

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

!function(t){var n={};function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(i,r,function(n){return t[n]}.bind(null,r));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=6)}([function(t,n,e){"use strict";e.d(n,"a",function(){return i});const i={isDataObject:function(t,n,e,i,r){r=void 0!==r&&r,e=void 0!==e&&e;var o=JSON.stringify(t);const s=`${o} is not an object`;if(void 0===t){if(r)throw s;return!1}if(!("object"==typeof t)||null===t){if(r)throw s;return!1}if(Array.isArray(n)){let s=!1,u=[];const a=Object.keys(t);if(n.forEach(function(t){a.includes(t)?s=!0:u.push(t)}),!s){if(r)throw`${o} does not contain at least one of the following: `+n.join(", ");return!1}if(e&&u.length){if(r)throw`${o} is missing data: `+u.join(", ");return!1}if(i){let t=[];if(a.forEach(function(e){n.includes(e)||t.push(e)}),t.length){if(r)throw`${o} contains invalid data: `+t.join(", ");return!1}}}return!0}}},function(t,n,e){"use strict";e.r(n);var i=e(0);const r={getter:function(t){return"get"+this.ucfirst(t)},setter:function(t){return"set"+this.ucfirst(t)},ucfirst:function(t){return t&&t[0].toUpperCase()+t.slice(1)}},o={getDomElement:function(t,n,e){if((t=this.getDomElements(t,n)).length>1){if(e)throw"Too many DOM elements found in getDomElement for "+JSON.stringify(t);return null}return t[0]},getDomElements:function(t,n){n=void 0!==n&&n;let e=[];if(void 0!==t&&t)if("string"==typeof t)e=Array.from(document.querySelectorAll(t));else if(t instanceof jQuery)t.length&&(e=t.toArray());else{if(!(t instanceof Element||t instanceof HTMLDocument))throw"Invalid value provided to getDomElements: "+JSON.stringify(t);e.push(t)}else;if(!e.length&&n)throw"Failed to get array of DOM elements for "+JSON.stringify(t);return e},exists:function(t){return this.getDomElements(t).length},multipleExist:function(t){return this.getDomElements(t).length>1}},s={onClick:function(t,n){return this.onEventPreventDefault(t,"click",n)},offClick(t,n){return this.offEventPreventDefault(t,"click",n)},onSubmit:function(t,n){return this.onEventPreventDefault(t,"submit",n)},offSubmit:function(t,n){return this.offEventPreventDefault(t,"submit",n)},onChange:function(t,n){const e=o.getDomElements(t);return e.length?(e.forEach(function(t){t.addEventListener("change",n)}),e):t},offChange:function(t,n){const e=o.getDomElements(t);return e.length?(e.forEach(function(t){t.removeEventListener("change",n)}),e):t},onEventPreventDefault:function(t,n,e){const i=o.getDomElements(t);return i.length?(i.forEach(function(t){t.addEventListener(n,function(t){return t.preventDefault(),e.call(this,[t]),!1})}),i):t},offEventPreventDefault:function(t,n,e){const i=o.getDomElements(t);return i.length?(i.forEach(function(t){t.removeEventListener(n,function(t){return t.preventDefault(),e.call(this,[t]),!1})}),i):t}};e.d(n,"type_checks",function(){return i.a}),e.d(n,"strings",function(){return r}),e.d(n,"dom",function(){return o}),e.d(n,"events",function(){return s})},function(t,n,e){"use strict";e.r(n)},function(t,n,e){"use strict";e.r(n)},function(t,n,e){"use strict";e.r(n),e(7);const i={query:new URLSearchParams(window.location.search),isHttps:function(){return"https:"===window.location.protocol},getDomain:function(){return window.location.hostname||window.location.host},getDomainWithProtocol:function(){return window.location.origin},getURI:function(){return window.location.pathname},getURIWithQueryString:function(){return window.location.pathname+window.location.search},getFullURL:function(){return window.location.href},appendSlash:function(t){return"/"!==t[t.length-1]?t+"/":t}};var r=e(1);const o={keys:[],populate:function(t){const n=this;return r.type_checks.isDataObject(t,this.keys,!1,!0,!0),this.keys.forEach(function(e){void 0!==t[e]&&n[r.strings.setter(e)](t[e])}),this}};var s=e(0);let u={id:null,name:null,config:{}};"object"==typeof $site&&(u={...u,...$site});const a={...o,keys:["id","name","config"],getId:function(){return this._id},setId:function(t){return this._id=t,this},getName:function(){return this._name},setName:function(t){return this._name=t,this},getConfig:function(){return this._config},setConfig:function(t){return s.a.isDataObject(t,null,!1,!1,!0),this._config=t,this},getConfigItem:function(t){return void 0===this._config[t]?null:this._config[t]},setConfigItem:function(t,n){return this._config[t]=n,this}}.populate(u);let c={id:null,isGuest:!1,isAdmin:!1,username:null,fname:null,lname:null,email:null,phone:null,permissions:[],additionalData:{}};"object"==typeof $user&&(c={...c,...$user});const f={...o,keys:["id","isGuest","isAdmin","username","fname","lname","email","phone","permissions","additionalData"],setId:function(t){return this._id=t,this},getId:function(){return this._id},setIsGuest:function(t){return this._isGuest=t,this},getIsGuest:function(){return this._isGuest},setIsAdmin:function(t){return this._isAdmin=t,this},getIsAdmin:function(){return this._isAdmin},setUsername:function(t){return this._username=t,this},getUsername:function(){return this._username},getFname:function(){return this._fname},setFname:function(t){return this._fname=t,this},getLname:function(){return this._lname},setLname:function(t){return this._lname=t,this},getName:function(){return`${f.getFname()} ${f.getLname()}`},getEmail:function(){return this._email},setEmail:function(t){return this._email=t,this},getPhone:function(){return this._phone},setPhone:function(t){return this._phone=t,this},getPermissions:function(){return this._permissions},setPermissions:function(t){if(!Array.isArray(t))throw"setPermissions requires an array";return this._permissions=t,this},addPermission:function(t){return this._permissions.push(t),this},removePermission:function(t){return this.setPermissions(this._permissions.filter(function(n){return n!==t})),this},hasPermission:function(t){return this.getPermissions().includes(t)},getAdditionalData:function(){return this._additionalData},setAdditionalData:function(t){return s.a.isDataObject(t,null,!1,!1,!0),this._additionalData=t,this},getDataItem(t){return void 0===this._additionalData[t]?null:this._additionalData[t]},setDataItem(t,n){return this._additionalData[t]=n,this}}.populate(c);e.d(n,"request",function(){return i}),e.d(n,"site",function(){return a}),e.d(n,"user",function(){return f})},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){"use strict";e.r(n),function(t){e.d(n,"jpack",function(){return u});var i=e(2),r=e(4),o=e(3),s=e(1);const u={components:i,objects:r,plugin_wrappers:o,utilities:s};t.jpack={...u,goGlobal:function(){[i,r,o,s].forEach(function(t){for(var n in t)t.hasOwnProperty(n)&&(window[n]=t[n])})}}}.call(this,e(5))},function(t,n,e){(function(t){!function(t){"use strict";var n,e=t.URLSearchParams&&t.URLSearchParams.prototype.get?t.URLSearchParams:null,i=e&&"a=1"===new e({a:1}).toString(),r=e&&"+"===new e("s=%2B").get("s"),o="__URLSearchParams__",s=!e||((n=new e).append("s"," &"),"s=+%26"===n.toString()),u=l.prototype,a=!(!t.Symbol||!t.Symbol.iterator);if(!(e&&i&&r&&s)){u.append=function(t,n){p(this[o],t,n)},u.delete=function(t){delete this[o][t]},u.get=function(t){var n=this[o];return t in n?n[t][0]:null},u.getAll=function(t){var n=this[o];return t in n?n[t].slice(0):[]},u.has=function(t){return t in this[o]},u.set=function(t,n){this[o][t]=[""+n]},u.toString=function(){var t,n,e,i,r=this[o],s=[];for(n in r)for(e=h(n),t=0,i=r[n];t<i.length;t++)s.push(e+"="+h(i[t]));return s.join("&")};var c=!!r&&e&&!i&&t.Proxy;Object.defineProperty(t,"URLSearchParams",{value:c?new Proxy(e,{construct:function(t,n){return new t(new l(n[0]).toString())}}):l});var f=t.URLSearchParams.prototype;f.polyfill=!0,f.forEach=f.forEach||function(t,n){var e=g(this.toString());Object.getOwnPropertyNames(e).forEach(function(i){e[i].forEach(function(e){t.call(n,e,i,this)},this)},this)},f.sort=f.sort||function(){var t,n,e,i=g(this.toString()),r=[];for(t in i)r.push(t);for(r.sort(),n=0;n<r.length;n++)this.delete(r[n]);for(n=0;n<r.length;n++){var o=r[n],s=i[o];for(e=0;e<s.length;e++)this.append(o,s[e])}},f.keys=f.keys||function(){var t=[];return this.forEach(function(n,e){t.push(e)}),d(t)},f.values=f.values||function(){var t=[];return this.forEach(function(n){t.push(n)}),d(t)},f.entries=f.entries||function(){var t=[];return this.forEach(function(n,e){t.push([e,n])}),d(t)},a&&(f[t.Symbol.iterator]=f[t.Symbol.iterator]||f.entries)}function l(t){((t=t||"")instanceof URLSearchParams||t instanceof l)&&(t=t.toString()),this[o]=g(t)}function h(t){var n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,function(t){return n[t]})}function m(t){return t.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,function(t){return decodeURIComponent(t)})}function d(n){var e={next:function(){var t=n.shift();return{done:void 0===t,value:t}}};return a&&(e[t.Symbol.iterator]=function(){return e}),e}function g(t){var n={};if("object"==typeof t)if(v(t))for(var e=0;e<t.length;e++){var i=t[e];if(!v(i)||2!==i.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");p(n,i[0],i[1])}else for(var r in t)t.hasOwnProperty(r)&&p(n,r,t[r]);else{0===t.indexOf("?")&&(t=t.slice(1));for(var o=t.split("&"),s=0;s<o.length;s++){var u=o[s],a=u.indexOf("=");-1<a?p(n,m(u.slice(0,a)),m(u.slice(a+1))):u&&p(n,m(u),"")}}return n}function p(t,n,e){var i="string"==typeof e?e:null!=e&&"function"==typeof e.toString?e.toString():JSON.stringify(e);n in t?t[n].push(i):t[n]=[i]}function v(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}}(void 0!==t?t:"undefined"!=typeof window?window:this)}).call(this,e(5))}]);
!function(t){var n={};function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(i,r,function(n){return t[n]}.bind(null,r));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=6)}([function(t,n,e){"use strict";e.d(n,"a",function(){return i});const i={isDataObject:function(t,n,e,i,r){r=void 0!==r&&r,e=void 0!==e&&e;var o=JSON.stringify(t);const s=`${o} is not an object`;if(void 0===t){if(r)throw s;return!1}if(!("object"==typeof t)||null===t||Array.isArray(t)){if(r)throw s;return!1}if(Array.isArray(n)){let s=!1,u=[];const a=Object.keys(t);if(n.forEach(function(t){a.includes(t)?s=!0:u.push(t)}),!s){if(r)throw`${o} does not contain at least one of the following: `+n.join(", ");return!1}if(e&&u.length){if(r)throw`${o} is missing data: `+u.join(", ");return!1}if(i){let t=[];if(a.forEach(function(e){n.includes(e)||t.push(e)}),t.length){if(r)throw`${o} contains invalid data: `+t.join(", ");return!1}}}return!0}}},function(t,n,e){"use strict";e.r(n);var i=e(0);const r={getter:function(t){return"get"+this.ucfirst(t)},setter:function(t){return"set"+this.ucfirst(t)},ucfirst:function(t){return t&&t[0].toUpperCase()+t.slice(1)}},o={getDomElement:function(t,n,e){if((t=this.getDomElements(t,n)).length>1){if(e)throw"Too many DOM elements found in getDomElement for "+JSON.stringify(t);return null}return t[0]},getDomElements:function(t,n){n=void 0!==n&&n;let e=[];if(void 0!==t&&t)if("string"==typeof t)e=Array.from(document.querySelectorAll(t));else if(t instanceof jQuery)t.length&&(e=t.toArray());else{if(!(t instanceof Element||t instanceof HTMLDocument))throw"Invalid value provided to getDomElements: "+JSON.stringify(t);e.push(t)}else;if(!e.length&&n)throw"Failed to get array of DOM elements for "+JSON.stringify(t);return e},exists:function(t){return this.getDomElements(t).length},multipleExist:function(t){return this.getDomElements(t).length>1}},s={onClick:function(t,n){return this.onEventPreventDefault(t,"click",n)},offClick(t,n){return this.offEventPreventDefault(t,"click",n)},onSubmit:function(t,n){return this.onEventPreventDefault(t,"submit",n)},offSubmit:function(t,n){return this.offEventPreventDefault(t,"submit",n)},onChange:function(t,n){const e=o.getDomElements(t);return e.length?(e.forEach(function(t){t.addEventListener("change",n)}),e):t},offChange:function(t,n){const e=o.getDomElements(t);return e.length?(e.forEach(function(t){t.removeEventListener("change",n)}),e):t},onEventPreventDefault:function(t,n,e){const i=o.getDomElements(t);return i.length?(i.forEach(function(t){t.addEventListener(n,function(t){return t.preventDefault(),e.call(this,[t]),!1})}),i):t},offEventPreventDefault:function(t,n,e){const i=o.getDomElements(t);return i.length?(i.forEach(function(t){t.removeEventListener(n,function(t){return t.preventDefault(),e.call(this,[t]),!1})}),i):t}};e.d(n,"type_checks",function(){return i.a}),e.d(n,"strings",function(){return r}),e.d(n,"dom",function(){return o}),e.d(n,"events",function(){return s})},function(t,n,e){"use strict";e.r(n)},function(t,n,e){"use strict";e.r(n)},function(t,n,e){"use strict";e.r(n),e(7);const i={query:new URLSearchParams(window.location.search),isHttps:function(){return"https:"===window.location.protocol},getDomain:function(){return window.location.hostname||window.location.host},getDomainWithProtocol:function(){return window.location.origin},getURI:function(){return window.location.pathname},getURIWithQueryString:function(){return window.location.pathname+window.location.search},getFullURL:function(){return window.location.href},appendSlash:function(t){return"/"!==t[t.length-1]?t+"/":t}};var r=e(1);const o={keys:[],populate:function(t){const n=this;return r.type_checks.isDataObject(t,this.keys,!1,!0,!0),this.keys.forEach(function(e){void 0!==t[e]&&n[r.strings.setter(e)](t[e])}),this}};var s=e(0);let u={id:null,name:null,config:{}};"object"==typeof $site&&(u={...u,...$site});const a={...o,keys:["id","name","config"],getId:function(){return this._id},setId:function(t){return this._id=t,this},getName:function(){return this._name},setName:function(t){return this._name=t,this},getConfig:function(){return this._config},setConfig:function(t){return s.a.isDataObject(t,null,!1,!1,!0),this._config=t,this},getConfigItem:function(t){return void 0===this._config[t]?null:this._config[t]},setConfigItem:function(t,n){return this._config[t]=n,this}}.populate(u);let c={id:null,isGuest:!1,isAdmin:!1,username:null,fname:null,lname:null,email:null,phone:null,permissions:[],additionalData:{}};"object"==typeof $user&&(c={...c,...$user});const f={...o,keys:["id","isGuest","isAdmin","username","fname","lname","email","phone","permissions","additionalData"],setId:function(t){return this._id=t,this},getId:function(){return this._id},setIsGuest:function(t){return this._isGuest=t,this},getIsGuest:function(){return this._isGuest},setIsAdmin:function(t){return this._isAdmin=t,this},getIsAdmin:function(){return this._isAdmin},setUsername:function(t){return this._username=t,this},getUsername:function(){return this._username},getFname:function(){return this._fname},setFname:function(t){return this._fname=t,this},getLname:function(){return this._lname},setLname:function(t){return this._lname=t,this},getName:function(){return`${f.getFname()} ${f.getLname()}`},getEmail:function(){return this._email},setEmail:function(t){return this._email=t,this},getPhone:function(){return this._phone},setPhone:function(t){return this._phone=t,this},getPermissions:function(){return this._permissions},setPermissions:function(t){if(!Array.isArray(t))throw"setPermissions requires an array";return this._permissions=t,this},addPermission:function(t){return this._permissions.push(t),this},removePermission:function(t){return this.setPermissions(this._permissions.filter(function(n){return n!==t})),this},hasPermission:function(t){return this.getPermissions().includes(t)},getAdditionalData:function(){return this._additionalData},setAdditionalData:function(t){return s.a.isDataObject(t,null,!1,!1,!0),this._additionalData=t,this},getDataItem(t){return void 0===this._additionalData[t]?null:this._additionalData[t]},setDataItem(t,n){return this._additionalData[t]=n,this}}.populate(c);e.d(n,"request",function(){return i}),e.d(n,"site",function(){return a}),e.d(n,"user",function(){return f})},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){"use strict";e.r(n),function(t){e.d(n,"jpack",function(){return u});var i=e(2),r=e(4),o=e(3),s=e(1);const u={components:i,objects:r,plugin_wrappers:o,utilities:s};t.jpack={...u,goGlobal:function(){[i,r,o,s].forEach(function(t){for(var n in t)t.hasOwnProperty(n)&&(window[n]=t[n])})}}}.call(this,e(5))},function(t,n,e){(function(t){!function(t){"use strict";var n,e=t.URLSearchParams&&t.URLSearchParams.prototype.get?t.URLSearchParams:null,i=e&&"a=1"===new e({a:1}).toString(),r=e&&"+"===new e("s=%2B").get("s"),o="__URLSearchParams__",s=!e||((n=new e).append("s"," &"),"s=+%26"===n.toString()),u=l.prototype,a=!(!t.Symbol||!t.Symbol.iterator);if(!(e&&i&&r&&s)){u.append=function(t,n){p(this[o],t,n)},u.delete=function(t){delete this[o][t]},u.get=function(t){var n=this[o];return t in n?n[t][0]:null},u.getAll=function(t){var n=this[o];return t in n?n[t].slice(0):[]},u.has=function(t){return t in this[o]},u.set=function(t,n){this[o][t]=[""+n]},u.toString=function(){var t,n,e,i,r=this[o],s=[];for(n in r)for(e=h(n),t=0,i=r[n];t<i.length;t++)s.push(e+"="+h(i[t]));return s.join("&")};var c=!!r&&e&&!i&&t.Proxy;Object.defineProperty(t,"URLSearchParams",{value:c?new Proxy(e,{construct:function(t,n){return new t(new l(n[0]).toString())}}):l});var f=t.URLSearchParams.prototype;f.polyfill=!0,f.forEach=f.forEach||function(t,n){var e=g(this.toString());Object.getOwnPropertyNames(e).forEach(function(i){e[i].forEach(function(e){t.call(n,e,i,this)},this)},this)},f.sort=f.sort||function(){var t,n,e,i=g(this.toString()),r=[];for(t in i)r.push(t);for(r.sort(),n=0;n<r.length;n++)this.delete(r[n]);for(n=0;n<r.length;n++){var o=r[n],s=i[o];for(e=0;e<s.length;e++)this.append(o,s[e])}},f.keys=f.keys||function(){var t=[];return this.forEach(function(n,e){t.push(e)}),d(t)},f.values=f.values||function(){var t=[];return this.forEach(function(n){t.push(n)}),d(t)},f.entries=f.entries||function(){var t=[];return this.forEach(function(n,e){t.push([e,n])}),d(t)},a&&(f[t.Symbol.iterator]=f[t.Symbol.iterator]||f.entries)}function l(t){((t=t||"")instanceof URLSearchParams||t instanceof l)&&(t=t.toString()),this[o]=g(t)}function h(t){var n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,function(t){return n[t]})}function m(t){return t.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,function(t){return decodeURIComponent(t)})}function d(n){var e={next:function(){var t=n.shift();return{done:void 0===t,value:t}}};return a&&(e[t.Symbol.iterator]=function(){return e}),e}function g(t){var n={};if("object"==typeof t)if(v(t))for(var e=0;e<t.length;e++){var i=t[e];if(!v(i)||2!==i.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");p(n,i[0],i[1])}else for(var r in t)t.hasOwnProperty(r)&&p(n,r,t[r]);else{0===t.indexOf("?")&&(t=t.slice(1));for(var o=t.split("&"),s=0;s<o.length;s++){var u=o[s],a=u.indexOf("=");-1<a?p(n,m(u.slice(0,a)),m(u.slice(a+1))):u&&p(n,m(u),"")}}return n}function p(t,n,e){var i="string"==typeof e?e:null!=e&&"function"==typeof e.toString?e.toString():JSON.stringify(e);n in t?t[n].push(i):t[n]=[i]}function v(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}}(void 0!==t?t:"undefined"!=typeof window?window:this)}).call(this,e(5))}]);
{
"name": "@htmlguyllc/jpack",
"version": "0.3.0",
"version": "0.3.1",
"description": "Core Javascript Library of Everyday Objects, Events, and Utilities",

@@ -5,0 +5,0 @@ "keywords": [

@@ -44,4 +44,4 @@ /**

//if not an object, or if null
if( !is_object || value === null ){
//if not an object, null, or an array
if( !is_object || value === null || Array.isArray(value) ){
if( throw_error ) throw error_msg;

@@ -48,0 +48,0 @@ return false;

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

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