mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-10-21 19:26:30 +00:00
Add version plugin to yarn (#4)
This commit is contained in:
1 parent
cd63585170
commit
c68f20984f
2 files changed
+54
No files matched your search
+52
@@ -0,0 +1,52 @@
|
||||
/* eslint-disable */
|
||||
module.exports = {
|
||||
name: "@yarnpkg/plugin-version",
|
||||
factory: function (require) {
|
||||
var plugin;plugin=(()=>{var __webpack_modules__={3354:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>P});var r=t(966);
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */function i(e,n,t,r){var i,u=arguments.length,o=u<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(u<3?i(o):u>3?i(n,t,o):i(n,t))||o);return u>3&&o&&Object.defineProperty(n,t,o),o}var u=t(2594),o=t(8042),a=t(4688),l=t(9145),s=t(9513),c=t.n(s);const f=/^(>=|[~^]|)(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$/;var d;async function p(e){const n=new Map,t=e.configuration.get("deferredVersionFolder");if(!a.xfs.existsSync(t))return new Map;const i=await a.xfs.readdirPromise(t);for(const u of i){if(!u.endsWith(".yml"))continue;const i=a.ppath.join(t,u),o=await a.xfs.readFilePromise(i,"utf8"),s=(0,l.parseSyml)(o);for(const[t,u]of Object.entries(s.releases||{})){const o=r.structUtils.parseIdent(t),l=e.tryWorkspaceByIdent(o);if(null===l)throw new Error(`Assertion failed: Expected a release definition file to only reference existing workspaces (${a.ppath.basename(i)} references ${t})`);if(null===l.manifest.version)throw new Error(`Assertion failed: Expected the workspace to have a version (${r.structUtils.prettyLocator(e.configuration,l.anchoredLocator)})`);const s=n.get(l),f=_(l.manifest.version,u);if(null===f)throw new Error(`Assertion failed: Expected ${l.manifest.version} to support being bumped via strategy ${u}`);const d=void 0!==s?c().gt(f,s)?f:s:f;n.set(l,d)}}return n}async function h(e,{allowEmpty:n=!1}={}){const t=e.configuration;if(null===t.projectCwd)throw new o.UsageError("This command can only be run from within a Yarn project");const i=await async function(e){let n,t=null,r=e;do{n=r,await a.xfs.existsPromise(a.ppath.join(n,".git"))&&(t=n),r=a.ppath.dirname(n)}while(null===t&&r!==n);return t}(t.projectCwd),u=null!==i?await async function(e,{baseRefs:n}){if(0===n.length)throw new o.UsageError("Can't run this command with zero base refs specified.");const t=[];for(const i of n){const{code:n}=await r.execUtils.execvp("git",["merge-base",i,"HEAD"],{cwd:e});0===n&&t.push(i)}if(0===t.length)throw new o.UsageError("No ancestor could be found between any of HEAD and "+n.join(", "));const{stdout:i}=await r.execUtils.execvp("git",["merge-base","HEAD",...t],{cwd:e,strict:!0}),u=i.trim(),{stdout:a}=await r.execUtils.execvp("git",["show","--quiet","--pretty=format:%s",u],{cwd:e,strict:!0});return{hash:u,title:a.trim()}}(i,{baseRefs:t.get("changesetBaseRefs")}):null,s=null!==i?await async function(e,{base:n,project:t}){const i=r.miscUtils.buildIgnorePattern(t.configuration.get("changesetIgnorePatterns")),{stdout:u}=await r.execUtils.execvp("git",["diff","--name-only",""+n],{cwd:e,strict:!0}),o=u.split(/\r\n|\r|\n/).filter(e=>e.length>0).map(n=>a.ppath.resolve(e,a.npath.toPortablePath(n))),{stdout:l}=await r.execUtils.execvp("git",["ls-files","--others","--exclude-standard"],{cwd:e,strict:!0}),s=l.split(/\r\n|\r|\n/).filter(e=>e.length>0).map(n=>a.ppath.resolve(e,a.npath.toPortablePath(n))),c=[...new Set([...o,...s].sort())];return i?c.filter(e=>!a.ppath.relative(t.cwd,e).match(i)):c}(i,{base:u.hash,project:e}):[],c=t.get("deferredVersionFolder"),f=s.filter(e=>null!==a.ppath.contains(c,e));if(f.length>1)throw new o.UsageError("Your current branch contains multiple versioning files; this isn't supported:\n- "+f.join("\n- "));const p=new Set(r.miscUtils.mapAndFilter(s,n=>{const t=e.tryWorkspaceByFilePath(n);return null===t?r.miscUtils.mapAndFilter.skip:t}));if(0===f.length&&0===p.size&&!n)return null;const h=1===f.length?f[0]:a.ppath.join(c,r.hashUtils.makeHash(Math.random().toString()).slice(0,8)+".yml"),m=a.xfs.existsSync(h)?await a.xfs.readFilePromise(h,"utf8"):"{}",v=(0,l.parseSyml)(m),_=new Map;for(const n of v.declined||[]){const t=r.structUtils.parseIdent(n),i=e.getWorkspaceByIdent(t);_.set(i,d.DECLINE)}for(const[n,t]of Object.entries(v.releases||{})){const i=r.structUtils.parseIdent(n),u=e.getWorkspaceByIdent(i);_.set(u,t)}return{project:e,root:i,baseHash:null!==u?u.hash:null,baseTitle:null!==u?u.title:null,changedFiles:new Set(s),changedWorkspaces:p,releaseRoots:new Set([...p].filter(e=>null!==e.manifest.version)),releases:_,async saveAll(){const n={},t=[],i=[];for(const u of e.workspaces){if(null===u.manifest.version)continue;const e=r.structUtils.stringifyIdent(u.locator),o=_.get(u);o===d.DECLINE?t.push(e):void 0!==o?n[e]=o:p.has(u)&&i.push(e)}await a.xfs.mkdirPromise(a.ppath.dirname(h),{recursive:!0}),await a.xfs.changeFilePromise(h,(0,l.stringifySyml)(new l.stringifySyml.PreserveOrdering({releases:Object.keys(n).length>0?n:void 0,declined:t.length>0?t:void 0,undecided:i.length>0?i:void 0})))}}}function m(e){const n=new Set;for(const t of e.changedWorkspaces)null!==t.manifest.version&&(e.releases.has(t)||n.add(t));return n}function v(e,{include:n=new Set}={}){const t=[],i=Line truncated
|
||||
/** @license React v0.20.4
|
||||
* react-reconciler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
e.exports=function n(r){"use strict";var i=t(9381),u=t(7382),o=t(5201);function a(e,n,t,r,i,u,o,a){if(!e){if(e=void 0,void 0===n)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[t,r,i,u,o,a],s=0;(e=Error(n.replace(/%s/g,(function(){return l[s++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function l(e){for(var n=arguments.length-1,t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<n;r++)t+="&args[]="+encodeURIComponent(arguments[r+1]);a(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",t)}var s=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;s.hasOwnProperty("ReactCurrentDispatcher")||(s.ReactCurrentDispatcher={current:null});var c="function"==typeof Symbol&&Symbol.for,f=c?Symbol.for("react.element"):60103,d=c?Symbol.for("react.portal"):60106,p=c?Symbol.for("react.fragment"):60107,h=c?Symbol.for("react.strict_mode"):60108,m=c?Symbol.for("react.profiler"):60114,v=c?Symbol.for("react.provider"):60109,_=c?Symbol.for("react.context"):60110,b=c?Symbol.for("react.concurrent_mode"):60111,g=c?Symbol.for("react.forward_ref"):60112,y=c?Symbol.for("react.suspense"):60113,D=c?Symbol.for("react.memo"):60115,w=c?Symbol.for("react.lazy"):60116,E="function"==typeof Symbol&&Symbol.iterator;function T(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=E&&e[E]||e["@@iterator"])?e:null}function C(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case b:return"ConcurrentMode";case p:return"Fragment";case d:return"Portal";case m:return"Profiler";case h:return"StrictMode";case y:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case _:return"Context.Consumer";case v:return"Context.Provider";case g:var n=e.render;return n=n.displayName||n.name||"",e.displayName||(""!==n?"ForwardRef("+n+")":"ForwardRef");case D:return C(e.type);case w:if(e=1===e._status?e._result:null)return C(e)}return null}function k(e){var n=e;if(e.alternate)for(;n.return;)n=n.return;else{if(0!=(2&n.effectTag))return 1;for(;n.return;)if(0!=(2&(n=n.return).effectTag))return 1}return 3===n.tag?2:3}function M(e){2!==k(e)&&l("188")}function S(e){var n=e.alternate;if(!n)return 3===(n=k(e))&&l("188"),1===n?null:e;for(var t=e,r=n;;){var i=t.return,u=i?i.alternate:null;if(!i||!u)break;if(i.child===u.child){for(var o=i.child;o;){if(o===t)return M(i),e;if(o===r)return M(i),n;o=o.sibling}l("188")}if(t.return!==r.return)t=i,r=u;else{o=!1;for(var a=i.child;a;){if(a===t){o=!0,t=i,r=u;break}if(a===r){o=!0,r=i,t=u;break}a=a.sibling}if(!o){for(a=u.child;a;){if(a===t){o=!0,t=u,r=i;break}if(a===r){o=!0,r=u,t=i;break}a=a.sibling}o||l("189")}}t.alternate!==r&&l("190")}return 3!==t.tag&&l("188"),t.stateNode.current===t?e:n}function A(e){if(!(e=S(e)))return null;for(var n=e;;){if(5===n.tag||6===n.tag)return n;if(n.child)n.child.return=n,n=n.child;else{if(n===e)break;for(;!n.sibling;){if(!n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}}return null}var x=r.getPublicInstance,P=r.getRootHostContext,R=r.getChildHostContext,N=r.prepareForCommit,F=r.resetAfterCommit,O=r.createInstance,L=r.appendInitialChild,I=r.finalizeInitialChildren,B=r.prepareUpdate,U=r.shouldSetTextContent,j=r.shouldDeprioritizeSubtree,W=r.createTextInstance,z=r.scheduleDeferredCallback,H=r.cancelDeferredCallback,G=r.shouldYield,Y=r.setTimeout,q=r.clearTimeout,V=r.noTimeout,$=r.schedulePassiveEffects,X=r.cancelPassiveEffects,K=r.now,J=r.isPrimaryRenderer,Q=r.supportsMutation,Z=r.supportsPersistence,ee=r.supportsHydration,ne=r.appendChild,te=r.appendChildToContainer,re=r.commitTextUpdate,ie=r.commitMount,ue=r.commitUpdate,oe=r.insertBefore,ae=r.insertInContainerBefore,le=r.removeChild,se=r.removeChildFromContainer,ce=r.resetTextContent,fe=r.hideInstance,de=r.hideTextInstance,pe=r.unhideInstance,he=r.unhideTextInstance,me=r.cloneInstance,ve=r.createContainerChildSet,_e=r.appendChildToContainerChildSet,be=r.finalizeContainerChildren,ge=r.replaceContainerChildren,ye=r.cloneHiddenInstance,De=r.cloneUnhiddenInstance,we=r.createHiddenTextInstance,Ee=r.canHydrateInstance,Te=r.canHydrateTextInstance,Ce=r.getNextHydratableSibling,ke=r.getFirstHydratableChild,Me=r.hydrateInstance,Se=r.hydrateTextInstance,Ae=/^(.*)[\\\/]/;function xe(e){var n="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var t="";break e;default:var r=e._debugOwner,i=e._debugSource,u=C(e.type);t=null,r&&(t=C(r.type)),r=u,u="",i?u=" (at "+i.fileName.replace(Ae,"")+":"+i.lineNumber+")":t&&(u=" (created by "+t+")"),t="\n in "+(r||"Unknown")+u}n+=t,e=e.return}while(e);return n}new Set;var Pe=[],Re=-1;function Ne(e){0>Re||(e.current=Pe[Re],Pe[Re]=null,Re--)}function Fe(e,n){Re++,Pe[Re]=e.current,e.current=n}var Oe={},Le={current:Oe},Ie={current:!1},Be=Oe;function Ue(e,n){var t=e.typLine truncated
|
||||
/*
|
||||
object-assign
|
||||
(c) Sindre Sorhus
|
||||
@license MIT
|
||||
*/var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,u){for(var o,a,l=i(e),s=1;s<arguments.length;s++){for(var c in o=Object(arguments[s]))t.call(o,c)&&(l[c]=o[c]);if(n){a=n(o);for(var f=0;f<a.length;f++)r.call(o,a[f])&&(l[a[f]]=o[a[f]])}}return l}},4767:(e,n,t)=>{"use strict";const r=t(2658);e.exports=(e,n)=>{if(!0===n)throw new TypeError("The second argument is now an options object");if("function"!=typeof e)throw new TypeError("Expected a function");let t;n=n||{};let i=!1;const u=e.displayName||e.name||"<anonymous>",o=function(){if(i){if(!0===n.throw)throw new Error(`Function \`${u}\` can only be called once`);return t}return i=!0,t=e.apply(this,arguments),e=null,t};return r(o,e),o}},6976:(e,n,t)=>{"use strict";var r=t(9090);function i(){}function u(){}u.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,u,o){if(o!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:u,resetWarningCache:i};return t.PropTypes=t,t}},6271:(e,n,t)=>{e.exports=t(6976)()},9090:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6099:(e,n,t)=>{"use strict";
|
||||
/** @license React v16.13.1
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var r=t(9381),i="function"==typeof Symbol&&Symbol.for,u=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function _(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function y(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||b}function D(){}function w(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||b}y.prototype.isReactComponent={},y.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(_(85));this.updater.enqueueSetState(this,e,n,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},D.prototype=y.prototype;var E=w.prototype=new D;E.constructor=w,r(E,y.prototype),E.isPureReactComponent=!0;var T={current:null},C=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function M(e,n,t){var r,i={},o=null,a=null;if(null!=n)for(r in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(o=""+n.key),n)C.call(n,r)&&!k.hasOwnProperty(r)&&(i[r]=n[r]);var l=arguments.length-2;if(1===l)i.children=t;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:u,type:e,key:o,ref:a,props:i,_owner:T.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var A=/\/+/g,x=[];function P(e,n,t,r){if(x.length){var i=x.pop();return i.result=e,i.keyPrefix=n,i.func=t,i.context=r,i.count=0,i}return{result:e,keyPrefix:n,func:t,context:r,count:0}}function R(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>x.length&&x.push(e)}function N(e,n,t){return null==e?0:function e(n,t,r,i){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var l=!1;if(null===n)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case u:case o:l=!0}}if(l)return r(i,n,""===t?"."+F(n,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(n))for(var s=0;s<n.length;s++){var c=t+F(a=n[s],s);l+=e(a,c,r,i)}else if(null===n||"object"!=typeof n?c=null:c="function"==typeof(c=v&&n[v]||n["@@iterator"])?c:null,"function"==typeof c)for(n=c.call(n),s=0;!(a=n.next()).done;)l+=e(a=a.value,c=t+F(a,s++),r,i);else if("object"===a)throw r=""+n,Error(_(31,"[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r,""));return l}(e,"",n,t)}function F(e,n){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var n={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return n[e]}))}(e.key):n.toString(36)}function O(e,n){e.func.call(e.context,n,e.count++)}function L(e,n,t){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,n,e.count++),Array.isArray(e)?I(e,r,t,(function(e){return e})):null!=e&&(S(e)&&(e=function(e,n){return{$$typeof:u,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||n&&n.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+t)),r.push(e))}function I(e,n,t,r,i){var u="";null!=t&&(u=(""+t).replace(A,"$&/")+"/"),N(e,L,n=P(n,u,r,i)),R(n)}var B={current:null};function U(){var e=B.current;if(null===e)throw Error(_(321));return e}var j={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:r};n.Children={map:function(e,n,t){if(null==e)return e;var r=[];return I(e,r,null,n,t),r},forEach:function(e,n,t){if(null==e)return e;N(e,O,n=P(null,null,n,t)),R(n)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var n=[];return I(e,n,null,(function(e){return e})),n},only:function(e){if(!S(e))throw Error(_(143));return e}},n.Component=y,n.Fragment=a,n.Profiler=s,n.PureComponent=w,n.StrictMode=l,n.Suspense=p,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,n.cloneElement=function(e,n,t){if(null==e)throw Error(_(267,e));var i=r({},e.props),o=e.key,a=e.ref,l=e._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,l=T.current),void 0!==n.key&&(o=""+n.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in n)C.call(n,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===n[c]&&void 0!==s?s[c]:n[c])}var c=arguments.length-2;if(1===c)i.children=t;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:u,Line truncated
|
||||
/** @license React v0.13.6
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/Object.defineProperty(n,"__esModule",{value:!0});var t=null,r=!1,i=3,u=-1,o=-1,a=!1,l=!1;function s(){if(!a){var e=t.expirationTime;l?E():l=!0,w(d,e)}}function c(){var e=t,n=t.next;if(t===n)t=null;else{var r=t.previous;t=r.next=n,n.previous=r}e.next=e.previous=null,r=e.callback,n=e.expirationTime,e=e.priorityLevel;var u=i,a=o;i=e,o=n;try{var l=r()}finally{i=u,o=a}if("function"==typeof l)if(l={callback:l,priorityLevel:e,expirationTime:n,next:null,previous:null},null===t)t=l.next=l.previous=l;else{r=null,e=t;do{if(e.expirationTime>=n){r=e;break}e=e.next}while(e!==t);null===r?r=t:r===t&&(t=l,s()),(n=r.previous).next=r.previous=l,l.next=r,l.previous=n}}function f(){if(-1===u&&null!==t&&1===t.priorityLevel){a=!0;try{do{c()}while(null!==t&&1===t.priorityLevel)}finally{a=!1,null!==t?s():l=!1}}}function d(e){a=!0;var i=r;r=e;try{if(e)for(;null!==t;){var u=n.unstable_now();if(!(t.expirationTime<=u))break;do{c()}while(null!==t&&t.expirationTime<=u)}else if(null!==t)do{c()}while(null!==t&&!T())}finally{a=!1,r=i,null!==t?s():l=!1,f()}}var p,h,m=Date,v="function"==typeof setTimeout?setTimeout:void 0,_="function"==typeof clearTimeout?clearTimeout:void 0,b="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,g="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function y(e){p=b((function(n){_(h),e(n)})),h=v((function(){g(p),e(n.unstable_now())}),100)}if("object"==typeof performance&&"function"==typeof performance.now){var D=performance;n.unstable_now=function(){return D.now()}}else n.unstable_now=function(){return m.now()};var w,E,T,C=null;if("undefined"!=typeof window?C=window:"undefined"!=typeof global&&(C=global),C&&C._schedMock){var k=C._schedMock;w=k[0],E=k[1],T=k[2],n.unstable_now=k[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var M=null,S=function(e){if(null!==M)try{M(e)}finally{M=null}};w=function(e){null!==M?setTimeout(w,0,e):(M=e,setTimeout(S,0,!1))},E=function(){M=null},T=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof b&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var A=null,x=!1,P=-1,R=!1,N=!1,F=0,O=33,L=33;T=function(){return F<=n.unstable_now()};var I=new MessageChannel,B=I.port2;I.port1.onmessage=function(){x=!1;var e=A,t=P;A=null,P=-1;var r=n.unstable_now(),i=!1;if(0>=F-r){if(!(-1!==t&&t<=r))return R||(R=!0,y(U)),A=e,void(P=t);i=!0}if(null!==e){N=!0;try{e(i)}finally{N=!1}}};var U=function(e){if(null!==A){y(U);var n=e-F+L;n<L&&O<L?(8>n&&(n=8),L=n<O?O:n):O=n,F=e+L,x||(x=!0,B.postMessage(void 0))}else R=!1};w=function(e,n){A=e,P=n,N||0>n?B.postMessage(void 0):R||(R=!0,y(U))},E=function(){A=null,x=!1,P=-1}}n.unstable_ImmediatePriority=1,n.unstable_UserBlockingPriority=2,n.unstable_NormalPriority=3,n.unstable_IdlePriority=5,n.unstable_LowPriority=4,n.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=i,o=u;i=e,u=n.unstable_now();try{return t()}finally{i=r,u=o,f()}},n.unstable_next=function(e){switch(i){case 1:case 2:case 3:var t=3;break;default:t=i}var r=i,o=u;i=t,u=n.unstable_now();try{return e()}finally{i=r,u=o,f()}},n.unstable_scheduleCallback=function(e,r){var o=-1!==u?u:n.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=o+r.timeout;else switch(i){case 1:r=o+-1;break;case 2:r=o+250;break;case 5:r=o+1073741823;break;case 4:r=o+1e4;break;default:r=o+5e3}if(e={callback:e,priorityLevel:i,expirationTime:r,next:null,previous:null},null===t)t=e.next=e.previous=e,s();else{o=null;var a=t;do{if(a.expirationTime>r){o=a;break}a=a.next}while(a!==t);null===o?o=t:o===t&&(t=e,s()),(r=o.previous).next=o.previous=e,e.next=o,e.previous=r}return e},n.unstable_cancelCallback=function(e){var n=e.next;if(null!==n){if(n===e)t=null;else{e===t&&(t=n);var r=e.previous;r.next=n,n.previous=r}e.next=e.previous=null}},n.unstable_wrapCallback=function(e){var t=i;return function(){var r=i,o=u;i=t,u=n.unstable_now();try{return e.apply(this,arguments)}finally{i=r,u=o,f()}}},n.unstable_getCurrentPriorityLevel=function(){return i},n.unstable_shouldYield=function(){return!r&&(null!==t&&t.expirationTime<o||T())},n.unstable_continueExecution=function(){null!==t&&s()},n.unstable_pauseExecution=function(){},n.unstable_getFirstCallbackNode=function(){return t}},5201:(e,n,t)=>{"use strict";e.exports=t(8992)},6458:(e,n,t)=>{var r,i=t(2357),u=t(8082),o=t(8614);function a(){c&&(c=!1,u.forEach((function(e){try{process.removeListener(e,s[e])}catch(e){}})),process.emit=h,process.reallyExit=d,r.count-=1)}function l(e,n,t){r.emitted[e]||(r.emitted[e]=!0,r.emit(e,n,t))}"function"!=typeof o&&(o=o.EventEmitter),process.__signal_exit_emitter__?r=process.__signal_exit_emitter__:((r=process.__signal_exit_emit
Line truncated
|
||||
return plugin;
|
||||
}
|
||||
};
|
||||
@@ -7,5 +7,7 @@ nodeLinker: node-modules
|
||||
plugins:
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
||||
spec: "@yarnpkg/plugin-interactive-tools"
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
|
||||
spec: "@yarnpkg/plugin-version"
|
||||
|
||||
yarnPath: .yarn/releases/yarn-2.2.2.cjs
|
||||
Reference in new issue
Block a user