Switch to locally hosted lodash build (extension script policy reasons...)

This commit is contained in:
Addy Osmani 2020-05-03 13:37:27 -07:00
Родитель 9737fa0ee8
Коммит c15287a237
5 изменённых файлов: 15 добавлений и 10 удалений

Просмотреть файл

@ -1,2 +1,3 @@
src/browser_action/web-vitals.js
src/browser_action/popup.js
src/browser_action/popup.js
src/browser_action/lodash-debounce-custom.js

Просмотреть файл

@ -10,7 +10,6 @@
"128": "icons/default128w.png",
"256": "icons/default256w.png"
},
"default_locale": "en",
"browser_action": {
"default_icon": "icons/default256w.png",
"default_title": "Web Vitals",
@ -33,7 +32,8 @@
"content_scripts": [
{
"matches": ["https://*/*", "http://*/*"],
"css": ["src/browser_action/viewer.css"]
"css": ["src/browser_action/viewer.css"],
"js": ["src/browser_action/lodash-debounce-custom.js"]
}
],
"background": {

Просмотреть файл

@ -13,8 +13,7 @@
"devDependencies": {
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"eslint-config-google": "^0.14.0",
"lodash.debounce": "^4.0.8"
"eslint-config-google": "^0.14.0"
},
"dependencies": {
"web-vitals": "^0.1.0"

Просмотреть файл

@ -0,0 +1,10 @@
/**
* @license
* lodash 3.8.0 (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
* Build: `lodash compat include="debounce" --production -o lodash.compat.js`
*/
;(function(){function t(){}function e(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function n(t){return null==t?false:g.call(t)==i?m.test(y.call(t)):!!t&&typeof t=="object"&&(d(t)?m:u).test(t)}function o(t){return typeof t!="string"&&(t=null==t?"":t+""),t&&c.test(t)?t.replace(r,"\\$&"):t}var i="[object Function]",r=/[.*+?^${}()|[\]\/\\]/g,c=RegExp(r.source),u=/^\[object .+?Constructor\]$/,l={"function":true,object:true},f=l[typeof exports]&&exports&&!exports.nodeType&&exports,a=l[typeof module]&&module&&!module.nodeType&&module,p=l[typeof self]&&self&&self.Object&&self,s=l[typeof window]&&window&&window.Object&&window,l=a&&a.exports===f&&f,p=f&&a&&typeof global=="object"&&global&&global.Object&&global||s!==(this&&this.window)&&s||p||this,d=function(){
try{Object({toString:0}+"")}catch(t){return function(){return false}}return function(t){return typeof t.toString!="function"&&typeof(t+"")=="string"}}(),y=Function.prototype.toString,g=Object.prototype.toString,m=RegExp("^"+o(g).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),b=Math.max,w=n(w=Date.now)&&w,j=w||function(){return(new Date).getTime()};t.debounce=function(t,n,o){function i(){var e=n-(j()-a);0>=e||e>n?(l&&clearTimeout(l),e=d,l=s=d=void 0,e&&(y=j(),f=t.apply(p,u),s||l||(u=p=null))):s=setTimeout(i,e);
}function r(){s&&clearTimeout(s),l=s=d=void 0,(m||g!==n)&&(y=j(),f=t.apply(p,u),s||l||(u=p=null))}function c(){if(u=arguments,a=j(),p=this,d=m&&(s||!w),false===g)var e=w&&!s;else{l||w||(y=a);var o=g-(a-y),c=0>=o||o>g;c?(l&&(l=clearTimeout(l)),y=a,f=t.apply(p,u)):l||(l=setTimeout(r,o))}return c&&s?s=clearTimeout(s):s||n===g||(s=setTimeout(i,n)),e&&(c=true,f=t.apply(p,u)),!c||s||l||(u=p=null),f}var u,l,f,a,p,s,d,y=0,g=false,m=true;if(typeof t!="function")throw new TypeError("Expected a function");if(n=0>n?0:+n||0,
!0===o)var w=true,m=false;else e(o)&&(w=o.leading,g="maxWait"in o&&b(+o.maxWait||0,n),m="trailing"in o?o.trailing:m);return c.cancel=function(){s&&clearTimeout(s),l&&clearTimeout(l),l=s=d=void 0},c},t.escapeRegExp=o,t.isNative=n,t.isObject=e,t.now=j,t.VERSION="3.8.0",typeof define=="function"&&typeof define.amd=="object"&&define.amd?(p._=t, define(function(){return t})):f&&a?l?(a.exports=t)._=t:f._=t:p._=t}).call(this);

Просмотреть файл

@ -640,11 +640,6 @@ levn@^0.3.0, levn@~0.3.0:
prelude-ls "~1.1.2"
type-check "~0.3.2"
lodash.debounce@^4.0.8:
version "4.0.8"
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168=
lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15:
version "4.17.15"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"