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

@knighttower/utility

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knighttower/utility - npm Package Compare versions

Comparing version 4.3.12 to 4.3.13

2

dist/amd/UrlHelper.js

@@ -14,3 +14,3 @@ define(['exports'], (function (exports) { 'use strict';

*/
const win = window;
const win = window ?? globalThis ?? {};

@@ -17,0 +17,0 @@ /**

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

(()=>{"use strict";var t={d:(n,r)=>{for(var e in r)t.o(r,e)&&!t.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:r[e]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n)},n={};function r(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===n){if(Object(r)!==r)return;l=!1}else for(;!(l=(e=a.call(r)).done)&&(c.push(e.value),c.length!==n);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,n)||e(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,n){if(t){if("string"==typeof t)return o(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}t.d(n,{default:()=>b});var a,i,c,l,u,f,s,y,h,d,p,v,m,b=(a=window,i=document,c=a.$HOST||!1,l=a.$TEMPLATE||!1,u=a.location.protocol.replace(":",""),f=c||a.location.host,s=l||"",y=location.pathname,h=c||"".concat(u,"://").concat(f),d=c?"".concat(c).concat(y):"".concat(u,"://").concat(f).concat(y),p=null,v=function(){if(p)return p;var t,n=new URLSearchParams(a.location.search),o={},i=function(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=e(t))){r&&(t=r);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){l=!0,i=t},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw i}}}}(n.entries());try{for(i.s();!(t=i.n()).done;){var c=r(t.value,2),l=c[0],u=c[1];o[l]=u}}catch(t){i.e(t)}finally{i.f()}return p={params:n,queryString:n.toString(),search:a.location.search,keys:Array.from(n.keys()),values:Array.from(n.values()),collection:o}},(m={getPage:function(){return i.location.toString().toLowerCase().split("/").pop().split(".")[0]||"index"},getParams:function(){return v()},getQuery:function(){return v().queryString},addToQuery:function(t){var n=v().collection;return Object.assign(n,t),{collection:n,queryString:Object.entries(n).map((function(t){var n=r(t,2),e=n[0],o=n[1];return"".concat(e,"=").concat(o)})).join("&")}},getHash:function(){return a.location.hash.substring(1)},setHash:function(t){i.location.hash=t},deleteHash:function(){history.pushState("",i.title,a.location.pathname)},goTo:function(t){return a.location.href=t,!1},open:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return a.open(t,n,r)},onChange:function(t){"function"==typeof t&&a.addEventListener("hashchange",t)}}).fullUrl=d,m.siteUrl=h,m.template=s,m.protocol=u,m.host=f,m.path=y,m.readUrl=i.URL,m);window.UrlHelper=n.default})();
(()=>{"use strict";var t={d:(n,r)=>{for(var e in r)t.o(r,e)&&!t.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:r[e]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n)},n={};function r(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,o,a,i,l=[],c=!0,u=!1;try{if(a=(r=r.call(t)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(e=a.call(r)).done)&&(l.push(e.value),l.length!==n);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||e(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,n){if(t){if("string"==typeof t)return o(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}t.d(n,{default:()=>S});var a,i,l,c,u,f,s,h,y,d,p,v,m,b,g,S=(l=null!==(a=null!==(i=window)&&void 0!==i?i:globalThis)&&void 0!==a?a:{},c=document,u=l.$HOST||!1,f=l.$TEMPLATE||!1,s=l.location.protocol.replace(":",""),h=u||l.location.host,y=f||"",d=location.pathname,p=u||"".concat(s,"://").concat(h),v=u?"".concat(u).concat(d):"".concat(s,"://").concat(h).concat(d),m=null,b=function(){if(m)return m;var t,n=new URLSearchParams(l.location.search),o={},a=function(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=e(t))){r&&(t=r);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return l=t.done,t},e:function(t){c=!0,i=t},f:function(){try{l||null==r.return||r.return()}finally{if(c)throw i}}}}(n.entries());try{for(a.s();!(t=a.n()).done;){var i=r(t.value,2),c=i[0],u=i[1];o[c]=u}}catch(t){a.e(t)}finally{a.f()}return m={params:n,queryString:n.toString(),search:l.location.search,keys:Array.from(n.keys()),values:Array.from(n.values()),collection:o}},(g={getPage:function(){return c.location.toString().toLowerCase().split("/").pop().split(".")[0]||"index"},getParams:function(){return b()},getQuery:function(){return b().queryString},addToQuery:function(t){var n=b().collection;return Object.assign(n,t),{collection:n,queryString:Object.entries(n).map((function(t){var n=r(t,2),e=n[0],o=n[1];return"".concat(e,"=").concat(o)})).join("&")}},getHash:function(){return l.location.hash.substring(1)},setHash:function(t){c.location.hash=t},deleteHash:function(){history.pushState("",c.title,l.location.pathname)},goTo:function(t){return l.location.href=t,!1},open:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return l.open(t,n,r)},onChange:function(t){"function"==typeof t&&l.addEventListener("hashchange",t)}}).fullUrl=v,g.siteUrl=p,g.template=y,g.protocol=s,g.host=h,g.path=d,g.readUrl=c.URL,g);window.UrlHelper=n.default})();

@@ -12,3 +12,3 @@ /**

*/
const win = window;
const win = window ?? globalThis ?? {};

@@ -15,0 +15,0 @@ /**

@@ -15,3 +15,3 @@ var UrlHelper = (function (exports) {

*/
const win = window;
const win = window ?? globalThis ?? {};

@@ -18,0 +18,0 @@ /**

@@ -17,3 +17,3 @@ System.register('UrlHelper', [], (function (exports) {

*/
const win = window;
const win = window ?? globalThis ?? {};

@@ -20,0 +20,0 @@ /**

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("UrlHelper",[],e):"object"==typeof exports?exports.UrlHelper=e():t.UrlHelper=e()}(this,(()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.d(e,{default:()=>b});var a,i,c,l,u,f,s,y,p,h,d,m,v,b=(a=window,i=document,c=a.$HOST||!1,l=a.$TEMPLATE||!1,u=a.location.protocol.replace(":",""),f=c||a.location.host,s=l||"",y=location.pathname,p=c||"".concat(u,"://").concat(f),h=c?"".concat(c).concat(y):"".concat(u,"://").concat(f).concat(y),d=null,m=function(){if(d)return d;var t,e=new URLSearchParams(a.location.search),o={},i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))){n&&(t=n);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,i=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw i}}}}(e.entries());try{for(i.s();!(t=i.n()).done;){var c=n(t.value,2),l=c[0],u=c[1];o[l]=u}}catch(t){i.e(t)}finally{i.f()}return d={params:e,queryString:e.toString(),search:a.location.search,keys:Array.from(e.keys()),values:Array.from(e.values()),collection:o}},(v={getPage:function(){return i.location.toString().toLowerCase().split("/").pop().split(".")[0]||"index"},getParams:function(){return m()},getQuery:function(){return m().queryString},addToQuery:function(t){var e=m().collection;return Object.assign(e,t),{collection:e,queryString:Object.entries(e).map((function(t){var e=n(t,2),r=e[0],o=e[1];return"".concat(r,"=").concat(o)})).join("&")}},getHash:function(){return a.location.hash.substring(1)},setHash:function(t){i.location.hash=t},deleteHash:function(){history.pushState("",i.title,a.location.pathname)},goTo:function(t){return a.location.href=t,!1},open:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return a.open(t,e,n)},onChange:function(t){"function"==typeof t&&a.addEventListener("hashchange",t)}}).fullUrl=h,v.siteUrl=p,v.template=s,v.protocol=u,v.host=f,v.path=y,v.readUrl=i.URL,v);return e.default})()));
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("UrlHelper",[],n):"object"==typeof exports?exports.UrlHelper=n():t.UrlHelper=n()}(this,(()=>(()=>{"use strict";var t={d:(n,e)=>{for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n)},n={};function e(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;c=!1}else for(;!(c=(r=a.call(e)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||r(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,n){if(t){if("string"==typeof t)return o(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}t.d(n,{default:()=>S});var a,i,l,c,u,f,s,y,h,p,d,v,m,b,g,S=(l=null!==(a=null!==(i=window)&&void 0!==i?i:globalThis)&&void 0!==a?a:{},c=document,u=l.$HOST||!1,f=l.$TEMPLATE||!1,s=l.location.protocol.replace(":",""),y=u||l.location.host,h=f||"",p=location.pathname,d=u||"".concat(s,"://").concat(y),v=u?"".concat(u).concat(p):"".concat(s,"://").concat(y).concat(p),m=null,b=function(){if(m)return m;var t,n=new URLSearchParams(l.location.search),o={},a=function(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=r(t))){e&&(t=e);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return l=t.done,t},e:function(t){c=!0,i=t},f:function(){try{l||null==e.return||e.return()}finally{if(c)throw i}}}}(n.entries());try{for(a.s();!(t=a.n()).done;){var i=e(t.value,2),c=i[0],u=i[1];o[c]=u}}catch(t){a.e(t)}finally{a.f()}return m={params:n,queryString:n.toString(),search:l.location.search,keys:Array.from(n.keys()),values:Array.from(n.values()),collection:o}},(g={getPage:function(){return c.location.toString().toLowerCase().split("/").pop().split(".")[0]||"index"},getParams:function(){return b()},getQuery:function(){return b().queryString},addToQuery:function(t){var n=b().collection;return Object.assign(n,t),{collection:n,queryString:Object.entries(n).map((function(t){var n=e(t,2),r=n[0],o=n[1];return"".concat(r,"=").concat(o)})).join("&")}},getHash:function(){return l.location.hash.substring(1)},setHash:function(t){c.location.hash=t},deleteHash:function(){history.pushState("",c.title,l.location.pathname)},goTo:function(t){return l.location.href=t,!1},open:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return l.open(t,n,e)},onChange:function(t){"function"==typeof t&&l.addEventListener("hashchange",t)}}).fullUrl=v,g.siteUrl=d,g.template=h,g.protocol=s,g.host=y,g.path=p,g.readUrl=c.URL,g);return n.default})()));
{
"name": "@knighttower/utility",
"version": "4.3.12",
"version": "4.3.13",
"type": "module",

@@ -5,0 +5,0 @@ "main": "index.cjs",

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