@jsonlang/core
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -0,0 +0,0 @@ import { RuleCore } from '../core'; |
@@ -0,0 +0,0 @@ "use strict"; |
export * from './app'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IJsonLangParams, RuleHandler, RuleResult, Rules, RuleDefinition, JsonLangOptions, SyncJsonLangOptions, AsyncJsonLangOptions } from './core.types'; |
@@ -81,17 +81,12 @@ "use strict"; | ||
__spreadArray([], __read(ruleClasses), false).forEach(function (RuleClass) { | ||
console.log('RuleClass', RuleClass); | ||
if (!RuleClass.prototype) | ||
return; | ||
var ruleClass = new RuleClass(); | ||
console.log('ruleClass', ruleClass); | ||
var propertyNames = Object.getOwnPropertyNames(RuleClass.prototype); | ||
propertyNames.forEach(function (propertyName) { | ||
var _a; | ||
console.log('propertyName', propertyName); | ||
var group = ((_a = Reflect.getMetadata('jsonlang:group', RuleClass)) === null || _a === void 0 ? void 0 : _a.name) || 'Others'; | ||
var ruleDefinition = Reflect.getMetadata('jsonlang:rule', RuleClass, propertyName); | ||
console.log('ruleDefinition', ruleDefinition); | ||
if (ruleDefinition) { | ||
var handler = ruleClass[propertyName].bind(ruleClass); | ||
console.log('handler', handler); | ||
ruleDefinition.identifier.group = ruleDefinition.identifier.group || group; | ||
@@ -98,0 +93,0 @@ var ruleHandler = ruleDefinition.sync ? { sync: handler } : { async: handler }; |
@@ -0,0 +0,0 @@ export type RuleIdentifier = { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { RuleDefinition } from "./core.types"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import 'reflect-metadata'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { RuleDefinition, AsyncRuleHandler } from "./core.types"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export * from './app'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DataScope } from "../core"; |
@@ -0,0 +0,0 @@ "use strict"; |
import { RuleDefinition } from "../core"; | ||
export declare const dataDefinition: RuleDefinition; | ||
//# sourceMappingURL=definitions.d.ts.map |
@@ -0,0 +0,0 @@ "use strict"; |
export * from './data'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "@jsonlang/core", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Json Programming Language Core", | ||
@@ -66,3 +66,3 @@ "funding": [ | ||
}, | ||
"gitHead": "1d62d8d687781820176933b34d7181415f6ebd9b" | ||
"gitHead": "229b1978e8c7e0475a21605c49b88e179f54524c" | ||
} |
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
89223
784