@untemps/utils 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";var r=require('../_rollupPluginBabelHelpers-ff3cb692.cjs');module.exports=function(e){return e.reduce((function(e,o){var n=r._slicedToArray(o,3),u=n[0],t=n[1],a=n[2];return u&&t?[].concat(r._toConsumableArray(e),[t]):!u&&a?[].concat(r._toConsumableArray(e),[a]):e}),[]).join(" ")};
1
+ "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),r=require("@babel/runtime/helpers/slicedToArray");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=t(e),n=t(r);module.exports=function(e){return e.reduce((function(e,r){var t=n.default(r,3),a=t[0],o=t[1],l=t[2];return a&&o?[].concat(u.default(e),[o]):!a&&l?[].concat(u.default(e),[l]):e}),[]).join(" ")};
@@ -1 +1 @@
1
- "use strict";var e=require('../_rollupPluginBabelHelpers-ff3cb692.cjs');module.exports=function(r,t){return e._construct(Function,e._toConsumableArray(Object.keys(t)).concat(["return `".concat(r,"`")])).apply(void 0,e._toConsumableArray(Object.values(t)))};
1
+ "use strict";var e=require("@babel/runtime/helpers/construct"),t=require("@babel/runtime/helpers/toConsumableArray");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=r(e),n=r(t);module.exports=function(e,t){return u.default(Function,n.default(Object.keys(t)).concat(["return `".concat(e,"`")])).apply(void 0,n.default(Object.values(t)))};
@@ -1 +1 @@
1
- import{_ as r,a as e}from'../_rollupPluginBabelHelpers-2b6ee930.mjs';var a=function(a){return a.reduce((function(a,n){var o=r(n,3),t=o[0],u=o[1],c=o[2];return t&&u?[].concat(e(a),[u]):!t&&c?[].concat(e(a),[c]):a}),[]).join(" ")};export{a as default};
1
+ import r from"@babel/runtime/helpers/toConsumableArray";import e from"@babel/runtime/helpers/slicedToArray";var o=function(o){return o.reduce((function(o,t){var n=e(t,3),a=n[0],u=n[1],c=n[2];return a&&u?[].concat(r(o),[u]):!a&&c?[].concat(r(o),[c]):o}),[]).join(" ")};export{o as default};
@@ -1 +1 @@
1
- import{b as e,a}from'../_rollupPluginBabelHelpers-2b6ee930.mjs';var t=function(t,r){return e(Function,a(Object.keys(r)).concat(["return `".concat(t,"`")])).apply(void 0,a(Object.values(r)))};export{t as default};
1
+ import e from"@babel/runtime/helpers/construct";import r from"@babel/runtime/helpers/toConsumableArray";var t=function(t,o){return e(Function,r(Object.keys(o)).concat(["return `".concat(t,"`")])).apply(void 0,r(Object.values(o)))};export{t as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@untemps/utils",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "",
5
5
  "repository": "git@github.com:untemps/utils.git",
6
6
  "keywords": [],
@@ -50,6 +50,9 @@
50
50
  "rollup-plugin-terser": "^7.0.2",
51
51
  "semantic-release": "^19.0.2"
52
52
  },
53
+ "dependencies": {
54
+ "@babel/runtime": "^7.17.8"
55
+ },
53
56
  "husky": {
54
57
  "hooks": {
55
58
  "pre-commit": "yarn test:ci && yarn prettier"
@@ -1 +0,0 @@
1
- "use strict";function t(r,n){return t=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},t(r,n)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function n(e,o,u){return n=r()?Reflect.construct:function(r,n,e){var o=[null];o.push.apply(o,n);var u=new(Function.bind.apply(r,o));return e&&t(u,e.prototype),u},n.apply(null,arguments)}function e(t,r){if(t){if("string"==typeof t)return o(t,r);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,r):void 0}}function o(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}exports._construct=n,exports._slicedToArray=function(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var e,o,u=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(e=n.next()).done)&&(u.push(e.value),!r||u.length!==r);a=!0);}catch(t){l=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return u}(t,r)||e(t,r)||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.")}()},exports._toConsumableArray=function(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()};
@@ -1 +0,0 @@
1
- function t(r,n){return t=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},t(r,n)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function n(e,o,u){return n=r()?Reflect.construct:function(r,n,e){var o=[null];o.push.apply(o,n);var u=new(Function.bind.apply(r,o));return e&&t(u,e.prototype),u},n.apply(null,arguments)}function e(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var e,o,u=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(e=n.next()).done)&&(u.push(e.value),!r||u.length!==r);a=!0);}catch(t){l=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return u}(t,r)||u(t,r)||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 o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,r){if(t){if("string"==typeof t)return a(t,r);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)?a(t,r):void 0}}function a(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}export{e as _,o as a,n as b};