Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jsonlang/core

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsonlang/core - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

0

dist/app/app.d.ts

@@ -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';

5

dist/core/core.js

@@ -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";

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc