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.0.0 to 1.0.1

LICENSE

7

package.json
{
"name": "@yoonit/utils",
"version": "1.0.0",
"version": "1.0.1",
"description": "A simple JS utility library to speed up development",

@@ -28,9 +28,10 @@ "main": "yoo-utils.bundle.js",

"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/core": "^7.13.10",
"@babel/eslint-parser": "^7.11.5",
"@babel/eslint-plugin": "^7.11.5",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.13.10",
"@webpack-cli/init": "^1.1.3",
"babel-jest": "^26.6.3",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-loader": "^8.2.2",
"eslint": "^7.21.0",

@@ -37,0 +38,0 @@ "eslint-config-standard": "^16.0.2",

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

(()=>{"use strict";var e={d:(r,t)=>{for(var n in t)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},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:()=>s});const t=(e,r)=>t=>{const o=c(t);return(...t)=>{if(!t.length)return console.warn("You need to specify at least one response field"),!1;const c=n(t);return`${e} {\n ${r} (\n ${o}\n ){\n ${c}\n }\n }`}},n=e=>e.reduce(((...e)=>o(...e))),o=(e,r)=>{if("string"==typeof r)return`${e}, ${r}`;if(r.constructor===Object){const t=Object.keys(r),n=r[t[0]];if(Array.isArray(n)){const r=n.reduce(((...e)=>o(...e)));return`${e}, ${t[0]} { ${r} }`}return`${e}, ${t[0]} { ${n} }`}return console.warn("One of your requested fields is in a wrong format"),e},c=e=>e&&e.constructor===Object?Object.keys(e).reduce(((r,t)=>null===e[t]?r:Array.isArray(e[t])||e[t].constructor===Object||"boolean"==typeof e[t]?r+=`${t}: ${(e=>{let r=JSON.stringify(e);return r=r.replace(/"([A-z])\w+"(:| :)/g,(e=>e.replace(/"/g,""))),r})(e[t])},`:r+=`${t}: "${e[t]}",`),""):"",s={query:e=>e?t.call(void 0,"query",e):(console.warn("You need to specify an endpoint"),()=>()=>!1),mutation:e=>e?t.call(void 0,"mutation",e):(console.warn("You need to specify an endpoint"),()=>()=>!1)};module.exports=r})();
(()=>{"use strict";var e={d:(n,r)=>{for(var t in r)e.o(r,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:r[t]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{graphql:()=>a});var r=(e,n)=>r=>{var o=c(r);return function(){for(var r=arguments.length,c=new Array(r),a=0;a<r;a++)c[a]=arguments[a];if(!c.length)return console.warn("You need to specify at least one response field"),!1;var u=t(c);return"".concat(e," {\n ").concat(n," (\n ").concat(o,"\n ){\n ").concat(u,"\n }\n }")}},t=e=>e.reduce((function(){return o(...arguments)})),o=(e,n)=>{if("string"==typeof n)return"".concat(e,", ").concat(n);if(n.constructor===Object){var r=Object.keys(n),t=n[r[0]];if(Array.isArray(t)){var c=t.reduce((function(){return o(...arguments)}));return"".concat(e,", ").concat(r[0]," { ").concat(c," }")}return"".concat(e,", ").concat(r[0]," { ").concat(t," }")}return console.warn("One of your requested fields is in a wrong format"),e},c=e=>e&&e.constructor===Object?Object.keys(e).reduce(((n,r)=>null===e[r]?n:Array.isArray(e[r])||e[r].constructor===Object||"boolean"==typeof e[r]?n+="".concat(r,": ").concat((e=>JSON.stringify(e).replace(/"([A-z])\w+"(:| :)/g,(e=>e.replace(/"/g,""))))(e[r]),","):n+="".concat(r,': "').concat(e[r],'",')),""):"";const a={query:e=>e?r.call(void 0,"query",e):(console.warn("You need to specify an endpoint"),()=>()=>!1),mutation:e=>e?r.call(void 0,"mutation",e):(console.warn("You need to specify an endpoint"),()=>()=>!1)};module.exports=n})();
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