🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@quick-qui/model-core

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quick-qui/model-core - npm Package Compare versions

Comparing version
2.2.1
to
2.3.0
+1
-1
dist/model/index.d.ts
export { Log, } from "./Log";
export { Model, } from "./Model";
export { ModelDefineConfig, ModelDefine, modelDefineRuntimeType } from "./ModelDefine";
export { ModelDefineConfig, ModelDefine, } from "./ModelDefine";
export { ModelValidator, ValidateError, } from "./ModelValidator";
export { ModelWeaver, ModelWeaveLog, ModelWeaverConfig, } from "./ModelWeaver";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ModelWeaveLog = exports.ValidateError = exports.modelDefineRuntimeType = void 0;
var ModelDefine_1 = require("./ModelDefine");
Object.defineProperty(exports, "modelDefineRuntimeType", { enumerable: true, get: function () { return ModelDefine_1.modelDefineRuntimeType; } });
exports.ModelWeaveLog = exports.ValidateError = void 0;
var ModelValidator_1 = require("./ModelValidator");

@@ -7,0 +5,0 @@ Object.defineProperty(exports, "ValidateError", { enumerable: true, get: function () { return ModelValidator_1.ValidateError; } });

@@ -1,1 +0,1 @@

{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":";;;AAMA,6CAIuB;AADnB,qHAAA,sBAAsB,OAAA;AAE1B,mDAG0B;AADtB,+GAAA,aAAa,OAAA;AAEjB,6CAIuB;AAFnB,4GAAA,aAAa,OAAA"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":";;;AAUA,mDAG0B;AADtB,+GAAA,aAAa,OAAA;AAEjB,6CAIuB;AAFnB,4GAAA,aAAa,OAAA"}
import { ValidateError } from "./ModelValidator";
import { Model } from "./Model";
import * as t from "io-ts";
import { ModelWeaver } from ".";
export interface ModelDefineConfig {
name: string;
filePattern: string;
filePattern?: string;
objectPattern?: string;
extend: Promise<any>;

@@ -12,3 +12,4 @@ }

name: string;
filePattern: string;
filePattern?: string;
objectPattern?: string;
validatePiece(piece: any, model: Model, buildingContext?: any): ValidateError[];

@@ -21,12 +22,1 @@ normalize?(model: Model, piece: any): any;

}
export declare const modelDefineRuntimeType: t.TypeC<{
name: t.StringC;
filePattern: t.StringC;
validatePiece: t.FunctionC;
merge: t.FunctionC;
validateAfterMerge: t.FunctionC;
validateAfterWeave: t.FunctionC;
weavers: t.ArrayC<t.TypeC<{
name: t.StringC;
}>>;
}>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.modelDefineRuntimeType = void 0;
var t = require("io-ts");
var ModelWeaver_1 = require("./ModelWeaver");
exports.modelDefineRuntimeType = t.type({
name: t.string,
filePattern: t.string,
validatePiece: t.Function,
merge: t.Function,
validateAfterMerge: t.Function,
validateAfterWeave: t.Function,
weavers: t.array(ModelWeaver_1.modelWeaverRT),
});
// export const modelDefineRuntimeType = t.type({
// name: t.string,
// filePattern: t.string,
// objectPattern: t.optional(t.string),
// validatePiece: t.Function,
// merge: t.Function,
// validateAfterMerge: t.Function,
// validateAfterWeave: t.Function,
// weavers: t.array(modelWeaverRT),
// });
//# sourceMappingURL=ModelDefine.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"ModelDefine.js","sourceRoot":"","sources":["../../src/model/ModelDefine.ts"],"names":[],"mappings":";;;AAGA,yBAA2B;AAE3B,6CAA8C;AAuBjC,QAAA,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,WAAW,EAAE,CAAC,CAAC,MAAM;IACrB,aAAa,EAAE,CAAC,CAAC,QAAQ;IACzB,KAAK,EAAE,CAAC,CAAC,QAAQ;IACjB,kBAAkB,EAAE,CAAC,CAAC,QAAQ;IAC9B,kBAAkB,EAAE,CAAC,CAAC,QAAQ;IAC9B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,2BAAa,CAAC;CAChC,CAAC,CAAC"}
{"version":3,"file":"ModelDefine.js","sourceRoot":"","sources":["../../src/model/ModelDefine.ts"],"names":[],"mappings":";;AA8BA,iDAAiD;AACjD,oBAAoB;AACpB,2BAA2B;AAC3B,yCAAyC;AACzC,+BAA+B;AAC/B,uBAAuB;AACvB,oCAAoC;AACpC,oCAAoC;AACpC,qCAAqC;AACrC,MAAM"}
{
"name": "@quick-qui/model-core",
"version": "2.2.1",
"version": "2.3.0",
"description": "model core",

@@ -5,0 +5,0 @@ "main": "dist/index.js",