api-core-js
Advanced tools
@@ -71,2 +71,3 @@ "use strict"; | ||
| const isApiService = (object) => { | ||
| var _a; | ||
| if (!object) | ||
@@ -76,3 +77,3 @@ return false; | ||
| return object.prototype[__api_service__] === __api_service__; | ||
| return Reflect.getPrototypeOf(object)[__api_service__] === __api_service__; | ||
| return ((_a = Reflect.getPrototypeOf(object)) === null || _a === void 0 ? void 0 : _a[__api_service__]) === __api_service__; | ||
| }; | ||
@@ -79,0 +80,0 @@ exports.isApiService = isApiService; |
@@ -63,2 +63,3 @@ "use strict"; | ||
| const isFieldable = (object) => { | ||
| var _a; | ||
| if (!object) | ||
@@ -68,8 +69,9 @@ return false; | ||
| return object.prototype[__object_field__] === __object_field__; | ||
| return Reflect.getPrototypeOf(object)[__object_field__] === __object_field__; | ||
| return ((_a = Reflect.getPrototypeOf(object)) === null || _a === void 0 ? void 0 : _a[__object_field__]) === __object_field__; | ||
| }; | ||
| const __field_mapping__ = Symbol('__field_mapping__'); //私有标记 | ||
| const fieldMapping = (object) => { | ||
| var _a; | ||
| compileFieldMeatada(object); | ||
| return Reflect.getPrototypeOf(object)[__field_mapping__] || null; | ||
| return ((_a = Reflect.getPrototypeOf(object)) === null || _a === void 0 ? void 0 : _a[__field_mapping__]) || null; | ||
| }; | ||
@@ -79,4 +81,5 @@ exports.fieldMapping = fieldMapping; | ||
| const fieldNames = (object) => { | ||
| var _a; | ||
| compileFieldMeatada(object); | ||
| return Reflect.getPrototypeOf(object)[__field_names__] || null; | ||
| return ((_a = Reflect.getPrototypeOf(object)) === null || _a === void 0 ? void 0 : _a[__field_names__]) || null; | ||
| }; | ||
@@ -83,0 +86,0 @@ exports.fieldNames = fieldNames; |
@@ -29,2 +29,3 @@ "use strict"; | ||
| const isServlet = (obj) => { | ||
| var _a; | ||
| if (!obj) | ||
@@ -34,3 +35,3 @@ return false; | ||
| return obj.prototype[__servlet__] === __servlet__; | ||
| return Reflect.getPrototypeOf(obj)[__servlet__] === __servlet__; | ||
| return ((_a = Reflect.getPrototypeOf(obj)) === null || _a === void 0 ? void 0 : _a[__servlet__]) === __servlet__; | ||
| }; | ||
@@ -37,0 +38,0 @@ exports.isServlet = isServlet; |
+2
-2
| { | ||
| "name": "api-core-js", | ||
| "version": "0.0.12", | ||
| "version": "0.0.15", | ||
| "description": "api core", | ||
| "main": "./lib/index.js", | ||
| "types": "./lib/typings/index.d.ts", | ||
| "repository": "https://github.com/yshiliang/api-core-js.git", | ||
| "repository": "https://gitee.com/sliangee/st-api-core-js.git", | ||
| "author": "y.liang", | ||
@@ -9,0 +9,0 @@ "license": "MIT", |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
56069
0.55%1297
0.39%