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

quick-methods

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quick-methods - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

399

dist/quick-methods.js

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

(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["quick-methods"] = factory();
else
root["quick-methods"] = factory();
})(window, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _String__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony import */ var _Number__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
/* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
/* harmony import */ var _Dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7);
/* harmony import */ var _Array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9);
/* harmony default export */ __webpack_exports__["default"] = ({ ..._String__WEBPACK_IMPORTED_MODULE_0__["default"],
..._Number__WEBPACK_IMPORTED_MODULE_1__["default"],
..._Base__WEBPACK_IMPORTED_MODULE_2__["default"],
..._Dom__WEBPACK_IMPORTED_MODULE_3__["default"],
..._Array__WEBPACK_IMPORTED_MODULE_4__["default"]
});
/***/ }),
/* 1 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
/* harmony import */ var _insertAtCursor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
/* harmony default export */ __webpack_exports__["default"] = ({
copy: _copy__WEBPACK_IMPORTED_MODULE_0__["default"],
insertAtCursor: _insertAtCursor__WEBPACK_IMPORTED_MODULE_1__["default"]
});
/***/ }),
/* 2 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
// 常用与点击按钮复制文本
/**
*
* @param {string} string
*/
function copy(string) {
if (typeof string !== 'string') {
console.error('Please enter a string parameter');
return false;
}
let input = null;
input = document.getElementById('quick-input-select');
if (input === null) {
input = document.createElement('input');
input.type = 'text';
input.id = 'quick-input-select';
}
input.style.left = "-1000px";
input.style.position = "absolute";
document.body.appendChild(input);
input.value = string;
input.select();
if (document.execCommand) {
return document.execCommand('copy');
} else {
console.error('Current browsers do not support exeCommand, please use chrome');
}
return false;
}
/* harmony default export */ __webpack_exports__["default"] = (copy);
/***/ }),
/* 3 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
// 常用与点击按钮复制文本
/**
*
* @param {element} element
* @param {string} value
*/
function insertAtCursor(element, target, value) {
if (value == undefined) {
// 方法写了多余的参数, 但以在使用,为了兼容老方法
// 现在只需传入两个参数 element 与 value
value = target;
target = element.value;
}
if (element.selectionStart || element.selectionStart === 0) {
var startPos = element.selectionStart;
var endPos = element.selectionEnd;
var diff = endPos - startPos;
target = target.substring(0, startPos) + value + target.substring(endPos, target.length);
setTimeout(() => {
element.focus();
var point = endPos + value.length - diff;
element.setSelectionRange(point, point);
});
} else {
target += value;
element.focus();
}
return target;
}
/* harmony default export */ __webpack_exports__["default"] = (insertAtCursor);
/***/ }),
/* 4 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _price__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
/* harmony default export */ __webpack_exports__["default"] = ({ ..._price__WEBPACK_IMPORTED_MODULE_0__["default"]
});
/***/ }),
/* 5 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
// 加 ¥
function formatPrice(price, symbol = "¥ ") {
return symbol + filterPrice(price);
} // 元转成分
function filterPriceToFen(price, symbol) {
if (price === undefined) {
return '0';
}
if (typeof price !== 'string') {
price = String(price);
}
if (symbol !== undefined) {
price = price.replace(symbol, '');
}
return Number(price * 100).toFixed(0);
} // 分转成元
//小数位为0直接显示整数,有一位显示一位,有多位显示两位
function filterPrice(data) {
if (typeof data === 'string') {
data = Number(data);
}
if (typeof data !== 'number' || isNaN(data) === true) {
console.error('Please enter number type');
return '0';
}
var yuan = Number(data / 100);
var fixed0 = yuan.toFixed(0);
var fixed1 = yuan.toFixed(1);
var fixed2 = yuan.toFixed(2);
if (Number(fixed0) == Number(fixed1) && Number(fixed1) == Number(fixed2)) {
return fixed0;
} else if (Number(fixed0) != Number(fixed1) && Number(fixed1) == Number(fixed2)) {
return fixed1;
} else {
return fixed2;
}
}
/* harmony default export */ __webpack_exports__["default"] = ({
formatPrice,
filterPrice,
filterPriceToFen
});
/***/ }),
/* 6 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
function debounce(fn, time) {
let t = new Date().getTime();
let first = true;
return async function () {
let newTime = new Date().getTime();
if (newTime - t > time || first) {
first = false;
await fn(...arguments);
t = newTime;
}
};
}
/* harmony default export */ __webpack_exports__["default"] = ({
debounce
});
/***/ }),
/* 7 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _scroll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
/* harmony default export */ __webpack_exports__["default"] = ({
bindScroll: _scroll__WEBPACK_IMPORTED_MODULE_0__["default"]
});
/***/ }),
/* 8 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
function loadFn(fn) {
let loading = false;
async function load() {
if (loading === true) {
return true;
}
loading = true;
await fn(...arguments);
loading = false;
}
return load;
}
async function scrollShare(el, fn, busy = false, diff = 100) {
if (busy === true) {
return;
}
let height = el.offsetHeight;
let scrollTop = el.scrollTop;
let wrap = el.children[0];
let wrapHeight = wrap.offsetHeight;
let diffHeight = wrapHeight - height;
if (diffHeight - scrollTop <= diff) {
await fn(...arguments);
}
}
function scrollHandle(sm = 20) {
return _Base__WEBPACK_IMPORTED_MODULE_0__["default"].debounce(loadFn(scrollShare), sm);
}
let bindScroll = scrollHandle();
/* harmony default export */ __webpack_exports__["default"] = (bindScroll);
/***/ }),
/* 9 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
function getObject(option, value, key = 'label') {
let obj = null;
option.some(item => {
if (item[key] === value) {
obj = item;
return true;
}
});
return obj;
}
/* harmony default export */ __webpack_exports__["default"] = ({
getObject
});
/***/ })
/******/ ])["default"];
});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["quick-methods"]=t():e["quick-methods"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var r=n(1),u=n(4),o=n(6),i=n(7),c=n(9);t.default={...r.default,...u.default,...o.default,...i.default,...c.default}},function(e,t,n){"use strict";n.r(t);var r=n(2),u=n(3);t.default={copy:r.default,insertAtCursor:u.default}},function(e,t,n){"use strict";n.r(t),t.default=function(e){if("string"!=typeof e)return console.error("Please enter a string parameter"),!1;let t=null;return null===(t=document.getElementById("quick-input-select"))&&((t=document.createElement("input")).type="text",t.id="quick-input-select"),t.style.left="-1000px",t.style.position="absolute",document.body.appendChild(t),t.value=e,t.select(),document.execCommand?document.execCommand("copy"):(console.error("Current browsers do not support exeCommand, please use chrome"),!1)}},function(e,t,n){"use strict";n.r(t),t.default=function(e,t,n){if(null==n&&(n=t,t=e.value),e.selectionStart||0===e.selectionStart){var r=e.selectionStart,u=e.selectionEnd,o=u-r;t=t.substring(0,r)+n+t.substring(u,t.length),setTimeout(()=>{e.focus();var t=u+n.length-o;e.setSelectionRange(t,t)})}else t+=n,e.focus();return t}},function(e,t,n){"use strict";n.r(t);var r=n(5);t.default={...r.default}},function(e,t,n){"use strict";function r(e){if("string"==typeof e&&(e=Number(e)),"number"!=typeof e||!0===isNaN(e))return console.error("Please enter number type"),"0";var t=Number(e/100),n=t.toFixed(0),r=t.toFixed(1),u=t.toFixed(2);return Number(n)==Number(r)&&Number(r)==Number(u)?n:Number(n)!=Number(r)&&Number(r)==Number(u)?r:u}n.r(t),t.default={formatPrice:function(e,t="¥ "){return t+r(e)},filterPrice:r,filterPriceToFen:function(e,t){return void 0===e?"0":("string"!=typeof e&&(e=String(e)),void 0!==t&&(e=e.replace(t,"")),Number(100*e).toFixed(0))}}},function(e,t,n){"use strict";n.r(t),t.default={debounce:function(e,t){let n=(new Date).getTime(),r=!0;return async function(){let u=(new Date).getTime();(u-n>t||r)&&(r=!1,await e(...arguments),n=u)}}}},function(e,t,n){"use strict";n.r(t);var r=n(8);t.default={bindScroll:r.default}},function(e,t,n){"use strict";n.r(t);var r=n(6);async function u(e,t,n=!1,r=100){if(!0===n)return;let u=e.offsetHeight,o=e.scrollTop;e.children[0].offsetHeight-u-o<=r&&await t(...arguments)}let o=function(e=20){return r.default.debounce(function(e){let t=!1;return async function(){if(!0===t)return!0;t=!0,await e(...arguments),t=!1}}(u),e)}();t.default=o},function(e,t,n){"use strict";n.r(t),t.default={getObject:function(e,t,n="label"){let r=null;return e.some(e=>{if(e[n]===t)return r=e,!0}),r}}}]).default}));

2

dist/quick-methods.min.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["quick-methods"]=t():e["quick-methods"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var r=n(1),u=n(4),o=n(6),i=n(7),f=n(9);t.default={...r.default,...u.default,...o.default,...i.default,...f.default}},function(e,t,n){"use strict";n.r(t);var r=n(2),u=n(3);t.default={copy:r.default,insertAtCursor:u.default}},function(e,t,n){"use strict";n.r(t),t.default=function(e){if("string"!=typeof e)return!1;let t=null;return null===(t=document.getElementById("quick-input-select"))&&((t=document.createElement("input")).type="text",t.id="quick-input-select"),t.style.left="-1000px",t.style.position="absolute",document.body.appendChild(t),t.value=e,t.select(),!!document.execCommand&&document.execCommand("copy")}},function(e,t,n){"use strict";n.r(t),t.default=function(e,t,n){if(null==n&&(n=t,t=e.value),e.selectionStart||0===e.selectionStart){var r=e.selectionStart,u=e.selectionEnd,o=u-r;t=t.substring(0,r)+n+t.substring(u,t.length),setTimeout(()=>{e.focus();var t=u+n.length-o;e.setSelectionRange(t,t)})}else t+=n,e.focus();return t}},function(e,t,n){"use strict";n.r(t);var r=n(5);t.default={...r.default}},function(e,t,n){"use strict";function r(e){if("string"==typeof e&&(e=Number(e)),"number"!=typeof e||!0===isNaN(e))return"0";var t=Number(e/100),n=t.toFixed(0),r=t.toFixed(1),u=t.toFixed(2);return Number(n)==Number(r)&&Number(r)==Number(u)?n:Number(n)!=Number(r)&&Number(r)==Number(u)?r:u}n.r(t),t.default={formatPrice:function(e,t="¥ "){return t+r(e)},filterPrice:r,filterPriceToFen:function(e,t){return void 0===e?"0":("string"!=typeof e&&(e=String(e)),void 0!==t&&(e=e.replace(t,"")),Number(100*e).toFixed(0))}}},function(e,t,n){"use strict";n.r(t),t.default={debounce:function(e,t){let n=(new Date).getTime(),r=!0;return async function(){let u=(new Date).getTime();(u-n>t||r)&&(r=!1,await e(...arguments),n=u)}}}},function(e,t,n){"use strict";n.r(t);var r=n(8);t.default={bindScroll:r.default}},function(e,t,n){"use strict";n.r(t);var r=n(6);async function u(e,t,n=!1,r=100){if(!0===n)return;let u=e.offsetHeight,o=e.scrollTop;e.children[0].offsetHeight-u-o<=r&&await t(...arguments)}let o=function(e=20){return r.default.debounce(function(e){let t=!1;return async function(){if(!0===t)return!0;t=!0,await e(...arguments),t=!1}}(u),e)}();t.default=o},function(e,t,n){"use strict";n.r(t),t.default={getObject:function(e,t,n="label"){let r=null;return e.some(e=>{if(e[n]===t)return r=e,!0}),r}}}]).default}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["quick-methods"]=t():e["quick-methods"]=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var r=n(1),u=n(4),o=n(6),i=n(7),c=n(9);t.default={...r.default,...u.default,...o.default,...i.default,...c.default}},function(e,t,n){"use strict";n.r(t);var r=n(2),u=n(3);t.default={copy:r.default,insertAtCursor:u.default}},function(e,t,n){"use strict";n.r(t),t.default=function(e){if("string"!=typeof e)return console.error("Please enter a string parameter"),!1;let t=null;return null===(t=document.getElementById("quick-input-select"))&&((t=document.createElement("input")).type="text",t.id="quick-input-select"),t.style.left="-1000px",t.style.position="absolute",document.body.appendChild(t),t.value=e,t.select(),document.execCommand?document.execCommand("copy"):(console.error("Current browsers do not support exeCommand, please use chrome"),!1)}},function(e,t,n){"use strict";n.r(t),t.default=function(e,t,n){if(null==n&&(n=t,t=e.value),e.selectionStart||0===e.selectionStart){var r=e.selectionStart,u=e.selectionEnd,o=u-r;t=t.substring(0,r)+n+t.substring(u,t.length),setTimeout(()=>{e.focus();var t=u+n.length-o;e.setSelectionRange(t,t)})}else t+=n,e.focus();return t}},function(e,t,n){"use strict";n.r(t);var r=n(5);t.default={...r.default}},function(e,t,n){"use strict";function r(e){if("string"==typeof e&&(e=Number(e)),"number"!=typeof e||!0===isNaN(e))return console.error("Please enter number type"),"0";var t=Number(e/100),n=t.toFixed(0),r=t.toFixed(1),u=t.toFixed(2);return Number(n)==Number(r)&&Number(r)==Number(u)?n:Number(n)!=Number(r)&&Number(r)==Number(u)?r:u}n.r(t),t.default={formatPrice:function(e,t="¥ "){return t+r(e)},filterPrice:r,filterPriceToFen:function(e,t){return void 0===e?"0":("string"!=typeof e&&(e=String(e)),void 0!==t&&(e=e.replace(t,"")),Number(100*e).toFixed(0))}}},function(e,t,n){"use strict";n.r(t),t.default={debounce:function(e,t){let n=(new Date).getTime(),r=!0;return async function(){let u=(new Date).getTime();(u-n>t||r)&&(r=!1,await e(...arguments),n=u)}}}},function(e,t,n){"use strict";n.r(t);var r=n(8);t.default={bindScroll:r.default}},function(e,t,n){"use strict";n.r(t);var r=n(6);async function u(e,t,n=!1,r=100){if(!0===n)return;let u=e.offsetHeight,o=e.scrollTop;e.children[0].offsetHeight-u-o<=r&&await t(...arguments)}let o=function(e=20){return r.default.debounce(function(e){let t=!1;return async function(){if(!0===t)return!0;t=!0,await e(...arguments),t=!1}}(u),e)}();t.default=o},function(e,t,n){"use strict";n.r(t),t.default={getObject:function(e,t,n="label"){let r=null;return e.some(e=>{if(e[n]===t)return r=e,!0}),r}}}]).default}));
{
"name": "quick-methods",
"version": "0.0.14",
"version": "0.0.15",
"description": "",

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

const path = require('path')
const TerserPlugin = require('terser-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');

@@ -37,17 +36,3 @@

minimize: true,
minimizer: [
new TerserPlugin({
test: /\.min\.js$/i,
cache: true,
parallel: true,
sourceMap: true, // Must be set to true if using source-maps in production
terserOptions: {
extractComments: 'all',
compress: {
drop_console: true,
},
}
})],
},
}
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