@yoonit/utils
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "@yoonit/utils", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Couple of functions in JS to speed up development and give some help", | ||
@@ -5,0 +5,0 @@ "main": "yoo-utils.bundle.js", |
@@ -1,1 +0,1 @@ | ||
(()=>{"use strict";var e={d:(r,l)=>{for(var t in l)e.o(l,t)&&!e.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:l[t]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{graphql:()=>p});var l=e=>r=>r?t.call(void 0,e,r):(console.warn("You need to specify an endpoint"),()=>()=>!1),t=(e,r)=>function(){for(var l=arguments.length,t=new Array(l),o=0;o<l;o++)t[o]=arguments[o];var n=a(t);return function(){for(var l=arguments.length,t=new Array(l),o=0;o<l;o++)t[o]=arguments[o];if(!t.length)return console.warn("You need to specify at least one response field"),!1;var a=c(t),p=n.length?"(".concat(n,")"):"";return"".concat(e," {").concat(r," ").concat(p,"{").concat(a,"}}")}},o=e=>e.replace(/"/g,""),n=e=>JSON.stringify(e).replaceAll(/^[[]|[\]]$/g,"").replaceAll(/(\r\n)|(\n)|(\r)|(\s\s)/g,"").replaceAll(/\\/g,""),a=e=>n(e).replaceAll(/^[{]|[}]$/g,"").replaceAll(/"{(.*)}"/g,o).replaceAll(/"([A-z])\w+"(:| :)/g,o),c=e=>(e=e.map((e=>e.constructor===Object?JSON.stringify(e).replaceAll(/^[{]|[}]$/g,""):e)).filter((e=>e.constructor!==Number&&e.constructor!==Boolean)),n(e).replaceAll(/[:|"]/g,"").replaceAll(/\[/g,"{").replaceAll(/]/g,"}"));const p={query:l("query"),mutation:l("mutation")};module.exports=r})(); | ||
(()=>{"use strict";var e={d:(r,t)=>{for(var o in t)e.o(t,o)&&!e.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:t[o]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{graphql:()=>p});var t=e=>r=>r?o.call(void 0,e,r):(console.warn("You need to specify an endpoint"),()=>()=>!1),o=(e,r)=>function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];var a=c(o);return function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];if(!o.length)return console.warn("You need to specify at least one response field"),!1;var c=l(o),p=a.length?"(".concat(a,")"):"";return"".concat(e," {").concat(r," ").concat(p,"{").concat(c,"}}")}},n=e=>e.replace(/"/g,""),a=e=>JSON.stringify(e).replace(/^[[]|[\]]$/g,"").replace(/(\r\n)|(\n)|(\r)|(\s\s)/g,"").replace(/\\/g,""),c=e=>a(e).replace(/^[{]|[}]$/g,"").replace(/"{(.*)}"/g,n).replace(/"([A-z])\w+"(:| :)/g,n),l=e=>(e=e.map((e=>e.constructor===Object?JSON.stringify(e).replace(/^[{]|[}]$/g,""):e)).filter((e=>e.constructor!==Number&&e.constructor!==Boolean)),a(e).replace(/[:|"]/g,"").replace(/\[/g,"{").replace(/]/g,"}"));const p={query:t("query"),mutation:t("mutation")};module.exports=r})(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
8969