maishu-chitu-react
Advanced tools
Comparing version 1.18.0 to 1.20.0
/*! | ||
* | ||
* maishu-chitu-react v1.18.0 | ||
* maishu-chitu-react v1.20.0 | ||
* https://github.com/ansiboy/services-sdk | ||
@@ -10,3 +10,13 @@ * | ||
*/ | ||
define(["maishu-chitu","react","react-dom"], function(__WEBPACK_EXTERNAL_MODULE_maishu_chitu__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__) { return /******/ (function(modules) { // webpackBootstrap | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(require("maishu-chitu"), require("react"), require("react-dom")); | ||
else if(typeof define === 'function' && define.amd) | ||
define(["maishu-chitu", "react", "react-dom"], factory); | ||
else { | ||
var a = typeof exports === 'object' ? factory(require("maishu-chitu"), require("react"), require("react-dom")) : factory(root["maishu-chitu"], root["react"], root["react-dom"]); | ||
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; | ||
} | ||
})(typeof window === 'undefined' ? global : window, function(__WEBPACK_EXTERNAL_MODULE_maishu_chitu__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
@@ -128,2 +138,8 @@ /******/ var installedModules = {}; | ||
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { | ||
return value instanceof P ? value : new P(function (resolve) { | ||
resolve(value); | ||
}); | ||
} | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
@@ -147,5 +163,3 @@ function fulfilled(value) { | ||
function step(result) { | ||
result.done ? resolve(result.value) : new P(function (resolve) { | ||
resolve(result.value); | ||
}).then(fulfilled, rejected); | ||
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); | ||
} | ||
@@ -261,3 +275,3 @@ | ||
case 8: | ||
if (isReactComponent(action)) { | ||
if (isClassComponent(action)) { | ||
console.assert(this.app != null); | ||
@@ -351,12 +365,15 @@ _app = this.app; | ||
} | ||
function isFunctionComponent(component) { | ||
return typeof component === 'function' && String(component).includes('return React.createElement') ? true : false; | ||
} | ||
function isReactComponent(component) { | ||
return isClassComponent(component) || isFunctionComponent(component) ? true : false; | ||
} | ||
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); // function isFunctionComponent(component: any) { | ||
// return ( | ||
// typeof component === 'function' && | ||
// String(component).includes('return React.createElement') | ||
// ) ? true : false; | ||
// } | ||
// function isReactComponent(component: any) { | ||
// return ( | ||
// isClassComponent(component) || | ||
// isFunctionComponent(component) | ||
// ) ? true : false; | ||
// } | ||
//# sourceMappingURL=application.js.map | ||
@@ -483,3 +500,4 @@ | ||
/******/ })});; | ||
/******/ }); | ||
}); | ||
//# sourceMappingURL=index.es5.js.map |
/*! | ||
* | ||
* maishu-chitu-react v1.18.0 | ||
* maishu-chitu-react v1.20.0 | ||
* https://github.com/ansiboy/services-sdk | ||
@@ -10,3 +10,13 @@ * | ||
*/ | ||
define(["maishu-chitu","react","react-dom"], function(__WEBPACK_EXTERNAL_MODULE_maishu_chitu__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__) { return /******/ (function(modules) { // webpackBootstrap | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(require("maishu-chitu"), require("react"), require("react-dom")); | ||
else if(typeof define === 'function' && define.amd) | ||
define(["maishu-chitu", "react", "react-dom"], factory); | ||
else { | ||
var a = typeof exports === 'object' ? factory(require("maishu-chitu"), require("react"), require("react-dom")) : factory(root["maishu-chitu"], root["react"], root["react-dom"]); | ||
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; | ||
} | ||
})(typeof window === 'undefined' ? global : window, function(__WEBPACK_EXTERNAL_MODULE_maishu_chitu__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
@@ -107,6 +117,7 @@ /******/ var installedModules = {}; | ||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -152,3 +163,3 @@ }); | ||
} | ||
if (isReactComponent(action)) { | ||
if (isClassComponent(action)) { | ||
console.assert(this.app != null); | ||
@@ -206,12 +217,16 @@ let app = this.app; | ||
} | ||
function isFunctionComponent(component) { | ||
return (typeof component === 'function' && | ||
String(component).includes('return React.createElement')) ? true : false; | ||
} | ||
function isReactComponent(component) { | ||
return (isClassComponent(component) || | ||
isFunctionComponent(component)) ? true : false; | ||
} | ||
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | ||
// function isFunctionComponent(component: any) { | ||
// return ( | ||
// typeof component === 'function' && | ||
// String(component).includes('return React.createElement') | ||
// ) ? true : false; | ||
// } | ||
// function isReactComponent(component: any) { | ||
// return ( | ||
// isClassComponent(component) || | ||
// isFunctionComponent(component) | ||
// ) ? true : false; | ||
// } | ||
@@ -303,3 +318,4 @@ | ||
/******/ })});; | ||
/******/ }); | ||
}); | ||
//# sourceMappingURL=index.js.map |
@@ -22,2 +22,8 @@ "use strict"; | ||
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { | ||
return value instanceof P ? value : new P(function (resolve) { | ||
resolve(value); | ||
}); | ||
} | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
@@ -41,5 +47,3 @@ function fulfilled(value) { | ||
function step(result) { | ||
result.done ? resolve(result.value) : new P(function (resolve) { | ||
resolve(result.value); | ||
}).then(fulfilled, rejected); | ||
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); | ||
} | ||
@@ -155,3 +159,3 @@ | ||
case 8: | ||
if (isReactComponent(action)) { | ||
if (isClassComponent(action)) { | ||
console.assert(this.app != null); | ||
@@ -245,11 +249,14 @@ _app = this.app; | ||
} | ||
function isFunctionComponent(component) { | ||
return typeof component === 'function' && String(component).includes('return React.createElement') ? true : false; | ||
} | ||
function isReactComponent(component) { | ||
return isClassComponent(component) || isFunctionComponent(component) ? true : false; | ||
} | ||
}); | ||
}); // function isFunctionComponent(component: any) { | ||
// return ( | ||
// typeof component === 'function' && | ||
// String(component).includes('return React.createElement') | ||
// ) ? true : false; | ||
// } | ||
// function isReactComponent(component: any) { | ||
// return ( | ||
// isClassComponent(component) || | ||
// isFunctionComponent(component) | ||
// ) ? true : false; | ||
// } | ||
//# sourceMappingURL=application.js.map |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -46,3 +47,3 @@ }); | ||
} | ||
if (isReactComponent(action)) { | ||
if (isClassComponent(action)) { | ||
console.assert(this.app != null); | ||
@@ -100,10 +101,14 @@ let app = this.app; | ||
} | ||
function isFunctionComponent(component) { | ||
return (typeof component === 'function' && | ||
String(component).includes('return React.createElement')) ? true : false; | ||
} | ||
function isReactComponent(component) { | ||
return (isClassComponent(component) || | ||
isFunctionComponent(component)) ? true : false; | ||
} | ||
}); | ||
// function isFunctionComponent(component: any) { | ||
// return ( | ||
// typeof component === 'function' && | ||
// String(component).includes('return React.createElement') | ||
// ) ? true : false; | ||
// } | ||
// function isReactComponent(component: any) { | ||
// return ( | ||
// isClassComponent(component) || | ||
// isFunctionComponent(component) | ||
// ) ? true : false; | ||
// } |
{ | ||
"name": "maishu-chitu-react", | ||
"version": "1.18.0", | ||
"version": "1.20.0", | ||
"description": "", | ||
@@ -40,2 +40,2 @@ "main": "dist/index.js", | ||
} | ||
} | ||
} |
@@ -11,7 +11,8 @@ const webpack = require('webpack'); | ||
module.exports = { | ||
entry: __dirname + "/out/index.js",//已多次提及的唯一入口文件 | ||
entry: __dirname + "/out/index.js", //已多次提及的唯一入口文件 | ||
output: { | ||
path: __dirname + "/dist",//打包后的文件存放的地方 | ||
filename: "index.js",//打包后输出文件的文件名 | ||
libraryTarget: 'amd' | ||
path: __dirname + "/dist", //打包后的文件存放的地方 | ||
filename: "index.js", //打包后输出文件的文件名 | ||
libraryTarget: 'umd', | ||
globalObject: 'typeof window === \'undefined\' ? global : window' | ||
}, | ||
@@ -18,0 +19,0 @@ mode: 'development', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
452634
2839