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

@yoonit/utils

Package Overview
Dependencies
Maintainers
11
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yoonit/utils - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

package.json
{
"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})();
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