UNPKG

fa-toolkit

Version:

a devtool for fast app

1 lines 3.1 kB
"use strict";var _0x2c8048=_0x35f3;function _0x1123(){var t=["hooks","subpackages","join","call","manifest.json","getOwnPropertyDescriptor","prototype","defineProperties","string","toPrimitive","path","@@toPrimitive must return a primitive value.","1254kHoWMQ","2882394slAFSe","options","default","3174564UNBdsG","release","1130831mIFIOZ","37072WemnBS","object","enumerable","function","getOwnPropertyDescriptors","buildPath","18ndFSqo","getOwnPropertySymbols","5139080FSPQJu","symbol","sign","push","../../common/generate-rpk","2VJLeAY","10038960hZIsPa","defineProperty","afterEmit","tapAsync","RpkSignPlugin","12222793daGgmL","5IXrkEa","length","filter","constructor","10HxjPul","keys","iterator"];return(_0x1123=function(){return t})()}function _typeof(t){var r=_0x35f3;return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol[r(181)]?function(t){return typeof t}:function(t){var e=r;return t&&e(158)==typeof Symbol&&t[e(178)]===Symbol&&t!==Symbol[e(188)]?e(164):typeof t})(t)}function ownKeys(r,t){var e,n=_0x35f3,o=Object[n(180)](r);return Object.getOwnPropertySymbols&&(e=Object[n(162)](r),t&&(e=e[n(177)](function(t){var e=n;return Object[e(187)](r,t)[e(203)]})),o[n(166)].apply(o,e)),o}function _objectSpread(e){for(var r=_0x35f3,t=1;t<arguments[r(176)];t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object[r(159)]?Object[r(189)](e,Object[r(159)](n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object[r(187)](n,t))})}return e}function _defineProperty(t,e,r){var n=_0x35f3;return(e=_toPropertyKey(e))in t?Object[n(170)](t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _0x35f3(t,e){var r=_0x1123();return(_0x35f3=function(t,e){return r[t-=158]})(t,e)}function _toPropertyKey(t){var e=_0x35f3,t=_toPrimitive(t,e(190));return _typeof(t)===e(164)?t:String(t)}function _toPrimitive(t,e){var r=_0x35f3;if(_typeof(t)!==r(202)||null===t)return t;var n=t[Symbol[r(191)]];if(void 0===n)return(e===r(190)?String:Number)(t);e=n[r(185)](t,e||r(197));if(_typeof(e)!==r(202))return e;throw new TypeError(r(193))}!function(){for(var t=_0x35f3,e=_0x1123();;)try{if(819063==+parseInt(t(200))*(-parseInt(t(168))/2)+-parseInt(t(195))/3+-parseInt(t(198))/4*(-parseInt(t(175))/5)+-parseInt(t(194))/6*(-parseInt(t(201))/7)+parseInt(t(163))/8*(parseInt(t(161))/9)+parseInt(t(179))/10*(-parseInt(t(174))/11)+parseInt(t(169))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var path=require(_0x2c8048(192)),_require=require(_0x2c8048(167)),signRpk=_require.signRpk,DEBUG="debug",RELEASE=_0x2c8048(199);function RpkSignPlugin(t){this[_0x2c8048(196)]=t}RpkSignPlugin[_0x2c8048(188)].apply=function(t){var u=_0x2c8048,a=this;t[u(182)][u(171)][u(172)](u(173),function(t,e){var r=u,n=path[r(184)](a[r(196)].buildPath,".."),o=path[r(184)](n,"sign"),i=a.options[r(165)]?RELEASE:DEBUG,n=require(path[r(184)](a[r(196)][r(160)],r(186)))[r(183)]||[],n=_objectSpread(_objectSpread({},a[r(196)]),{},{signRoot:o,signPath:i,subpackages:n});signRpk(t,n,e)})},module.exports=RpkSignPlugin;