@moneko/core 2.0.43 → 2.0.45
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
|
-
import o from"react";import{isFunction as e}from"@moneko/common";import t from"./app";hasPersist&&require("
|
|
1
|
+
import o from"react";import{isFunction as e}from"@moneko/common";import t from"./app";hasPersist&&require("../../persist");var r=APPENTRY?require(APPENTRY):null,n=require(ReactDOMPath),l=parseFloat(o.version),a=document.getElementById("root");l>=18?(e(null==r?void 0:r.bootstrap)&&(null==r||r.bootstrap()),"ssr"===programInfo.renderMode?window.rootInstance=n.hydrateRoot(a,o.createElement(t,null)):(window.rootInstance=n.createRoot(a),window.rootInstance.render(o.createElement(t,null))),e(null==r?void 0:r.mount)&&(null==r||r.mount())):(e(null==r?void 0:r.bootstrap)&&(null==r||r.bootstrap()),(module.hot?n.render:n.hydrate)(o.createElement(t,null),a),e(null==r?void 0:r.mount)&&(null==r||r.mount()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{isFunction as e}from"@moneko/common";import t from"./app";hasPersist&&require("
|
|
1
|
+
import o from"react";import{isFunction as e}from"@moneko/common";import t from"./app";hasPersist&&require("../../persist");var r=APPENTRY?require(APPENTRY):null,n=require(ReactDOMPath),l=parseFloat(o.version),a=document.getElementById("root");l>=18?(e(null==r?void 0:r.bootstrap)&&(null==r||r.bootstrap()),"ssr"===programInfo.renderMode?window.rootInstance=n.hydrateRoot(a,o.createElement(t,null)):(window.rootInstance=n.createRoot(a),window.rootInstance.render(o.createElement(t,null))),e(null==r?void 0:r.mount)&&(null==r||r.mount())):(e(null==r?void 0:r.bootstrap)&&(null==r||r.bootstrap()),(module.hot?n.render:n.hydrate)(o.createElement(t,null),a),e(null==r?void 0:r.mount)&&(null==r||r.mount()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{isFunction as o}from"@moneko/common";import t from"./app";hasPersist&&require("
|
|
1
|
+
import e from"react";import{isFunction as o}from"@moneko/common";import t from"./app";hasPersist&&require("../../persist");var r=APPENTRY?require(APPENTRY):null,n=require(ReactDOMPath),l=parseFloat(e.version),a=document.getElementById("root"),m=function(){o(null==r?void 0:r.bootstrap)&&(null==r||r.bootstrap()),l>=18?"ssr"===programInfo.renderMode?window.rootInstance=n.hydrateRoot(a,e.createElement(t,null)):(window.rootInstance=n.createRoot(a),window.rootInstance.render(e.createElement(t,null))):(module.hot?n.render:n.hydrate)(e.createElement(t,null),a),o(null==r?void 0:r.mount)&&(null==r||r.mount())};window.H5RemoteRuntime={bootstrap:m},m();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function n(n,t,r,e,o,u,a){try{var i=n[u](a),l=i.value}catch(n){r(n);return}i.done?t(l):Promise.resolve(l).then(e,o)}function t(t){return function(){var r=this,e=arguments;return new Promise(function(o,u){var a=t.apply(r,e);function i(t){n(a,o,u,i,l,"next",t)}function l(t){n(a,o,u,i,l,"throw",t)}i(void 0)})}}function r(){return(r=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n}).apply(this,arguments)}var e=this&&this.__generator||function(n,t){var r,e,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,e&&(o=2&u[0]?e.return:u[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,u[1])).done)return o;switch(e=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,e=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(n,a)}catch(n){u=[6,n],e=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}};import o from"react";import{isFunction as u}from"@moneko/common";import a from"./app";hasPersist&&require("
|
|
1
|
+
function n(n,t,r,e,o,u,a){try{var i=n[u](a),l=i.value}catch(n){r(n);return}i.done?t(l):Promise.resolve(l).then(e,o)}function t(t){return function(){var r=this,e=arguments;return new Promise(function(o,u){var a=t.apply(r,e);function i(t){n(a,o,u,i,l,"next",t)}function l(t){n(a,o,u,i,l,"throw",t)}i(void 0)})}}function r(){return(r=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n}).apply(this,arguments)}var e=this&&this.__generator||function(n,t){var r,e,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,e&&(o=2&u[0]?e.return:u[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,u[1])).done)return o;switch(e=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,e=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(n,a)}catch(n){u=[6,n],e=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}};import o from"react";import{isFunction as u}from"@moneko/common";import a from"./app";hasPersist&&require("../../persist");var i=APPENTRY?require(APPENTRY):null,l=require(ReactDOMPath),c=parseFloat(o.version);function s(n){var t=n.container,e=n.basename,u=n.fallback,i=n.language,s=function(n,t){if(null==n)return{};var r,e,o={},u=Object.keys(n);for(e=0;e<u.length;e++)t.indexOf(r=u[e])>=0||(o[r]=n[r]);return o}(n,["container","basename","fallback","language"]),f=(null==t?void 0:t.querySelector("#root"))||document.querySelector("#root"),p={basename:e,fallback:u,language:i};window.primaryApp=r({},s,{container:f}),c>=18?"ssr"===programInfo.renderMode?window.rootInstance=l.hydrateRoot(f,o.createElement(a,r({},p))):(window.rootInstance=l.createRoot(f),window.rootInstance.render(o.createElement(a,r({},p)))):(module.hot?l.render:l.hydrate)(o.createElement(a,r({},p)),f)}window.__POWERED_BY_QIANKUN__||s({});export function bootstrap(){return f.apply(this,arguments)}function f(){return(f=t(function(){return e(this,function(n){return u(null==i?void 0:i.bootstrap)&&(null==i||i.bootstrap()),[2]})})).apply(this,arguments)}export function unmount(n){return p.apply(this,arguments)}function p(){return(p=t(function(n){var t,r;return e(this,function(e){return u(null==i?void 0:i.unmount)&&(null==i||i.unmount(n)),t=n.container,c>=18?window.rootInstance.unmount():(r=(null==t?void 0:t.querySelector("#root"))||document.querySelector("#root"),l.unmountComponentAtNode(r)),[2]})})).apply(this,arguments)}export function mount(n){return h.apply(this,arguments)}function h(){return(h=t(function(n){return e(this,function(t){return u(null==i?void 0:i.mount)&&(null==i||i.mount(n)),s(n),[2]})})).apply(this,arguments)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"react";import{isFunction as e}from"@moneko/common";import t from"./app";hasPersist&&require("
|
|
1
|
+
import o from"react";import{isFunction as e}from"@moneko/common";import t from"./app";hasPersist&&require("../../persist");var r=APPENTRY?require(APPENTRY):null,n=require(ReactDOMPath),l=parseFloat(o.version),a=document.getElementById("root");l>=18?(e(null==r?void 0:r.bootstrap)&&(null==r||r.bootstrap()),"ssr"===programInfo.renderMode?window.rootInstance=n.hydrateRoot(a,o.createElement(t,null)):(window.rootInstance=n.createRoot(a),window.rootInstance.render(o.createElement(t,null))),e(null==r?void 0:r.mount)&&(null==r||r.mount())):(e(null==r?void 0:r.bootstrap)&&(null==r||r.bootstrap()),(module.hot?n.render:n.hydrate)(o.createElement(t,null),a),e(null==r?void 0:r.mount)&&(null==r||r.mount()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.45",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@emotion/css": "11.10.6",
|
|
19
19
|
"@mapbox/rehype-prism": "0.8.0",
|
|
20
20
|
"@mdx-js/loader": "2.3.0",
|
|
21
|
-
"@moneko/common": "1.0.
|
|
21
|
+
"@moneko/common": "1.0.28",
|
|
22
22
|
"@parcel/css": "1.14.0",
|
|
23
23
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
|
24
24
|
"@soda/friendly-errors-webpack-plugin": "1.8.1",
|