New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@journeyapps/parser-schema

Package Overview
Dependencies
Maintainers
2
Versions
311
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@journeyapps/parser-schema - npm Package Compare versions

Comparing version 8.0.2 to 8.0.3

2

dist/@types/src/schema/Schema.d.ts

@@ -14,3 +14,3 @@ import { Version } from '@journeyapps/parser-common';

import { TypeFactory } from './TypeFactory';
export declare type InferGetType<T extends string | PrimitiveTypeName, MAP extends {
export type InferGetType<T extends string | PrimitiveTypeName, MAP extends {
[key in PrimitiveTypeName]: typeof Type;

@@ -17,0 +17,0 @@ } = PrimitiveTypeMap> = T extends PrimitiveTypeName ? InstanceType<MAP[T]> : ObjectType;

@@ -15,4 +15,4 @@ import { ArrayType } from '../types/collections/ArrayType';

}
export declare type ObjectTypeInstance = Variable<any> | ObjectType | ArrayType | QueryType | Relationship;
export declare type ObjectTypeName = typeof Variable.TYPE | typeof ObjectType.TYPE | typeof ArrayType.TYPE | typeof QueryType.TYPE | typeof Relationship.TYPE;
export type ObjectTypeInstance = Variable<any> | ObjectType | ArrayType | QueryType | Relationship;
export type ObjectTypeName = typeof Variable.TYPE | typeof ObjectType.TYPE | typeof ArrayType.TYPE | typeof QueryType.TYPE | typeof Relationship.TYPE;
export declare abstract class AbstractObjectTypeFactory<R extends ObjectTypeInstance = ObjectTypeInstance, E extends GenerateTypeEvent = GenerateTypeEvent> implements TypeFactory<ObjectTypeName> {

@@ -19,0 +19,0 @@ name: ObjectTypeName;

@@ -33,3 +33,3 @@ import { AttachmentType } from './attachments/Attachment';

};
export declare type PrimitiveType = typeof PrimitiveType;
export type PrimitiveType = typeof PrimitiveType;
export declare const PrimitiveTypeMap: {

@@ -52,5 +52,5 @@ readonly attachment: typeof AttachmentType;

};
export declare type PrimitiveTypeMap = typeof PrimitiveTypeMap;
export declare type PrimitiveTypeName = keyof typeof PrimitiveTypeMap;
export declare type PrimitiveTypeInstance = InstanceType<PrimitiveTypeMap[PrimitiveTypeName]>;
export type PrimitiveTypeMap = typeof PrimitiveTypeMap;
export type PrimitiveTypeName = keyof typeof PrimitiveTypeMap;
export type PrimitiveTypeInstance = InstanceType<PrimitiveTypeMap[PrimitiveTypeName]>;
export * from './Boolean';

@@ -57,0 +57,0 @@ export * from './Date';

@@ -8,3 +8,3 @@ "use strict";

IndexDirection[IndexDirection["DESCENDING"] = -1] = "DESCENDING";
})(IndexDirection = exports.IndexDirection || (exports.IndexDirection = {}));
})(IndexDirection || (exports.IndexDirection = IndexDirection = {}));
var IndexDatabase;

@@ -14,3 +14,3 @@ (function (IndexDatabase) {

IndexDatabase["APP"] = "app";
})(IndexDatabase = exports.IndexDatabase || (exports.IndexDatabase = {}));
})(IndexDatabase || (exports.IndexDatabase = IndexDatabase = {}));
//# sourceMappingURL=ModelIndex.js.map

@@ -7,2 +7,5 @@ "use strict";

class ArrayType extends Type_1.Type {
static isInstanceOf(type) {
return type.name === ArrayType.TYPE;
}
constructor(objectType) {

@@ -13,5 +16,2 @@ super(ArrayType.TYPE);

}
static isInstanceOf(type) {
return type.name === ArrayType.TYPE;
}
stringify() {

@@ -18,0 +18,0 @@ return `${super.stringify()}:${this.objectType.name}`;

@@ -7,2 +7,5 @@ "use strict";

class QueryType extends Type_1.Type {
static isInstanceOf(type) {
return type.name === QueryType.TYPE;
}
constructor(objectType) {

@@ -16,5 +19,2 @@ super(QueryType.TYPE);

}
static isInstanceOf(type) {
return type.name === QueryType.TYPE;
}
stringify() {

@@ -21,0 +21,0 @@ return `${super.stringify()}:${this.objectType.name}`;

@@ -7,9 +7,2 @@ "use strict";

class NestedType extends Type_1.Type {
constructor(parent) {
super(NestedType.TYPE);
this.parent = parent;
if (this.parent) {
this.attributes = Object.create(parent.attributes);
}
}
static isInstanceOf(type) {

@@ -28,2 +21,9 @@ return type.name === NestedType.TYPE;

}
constructor(parent) {
super(NestedType.TYPE);
this.parent = parent;
if (this.parent) {
this.attributes = Object.create(parent.attributes);
}
}
toJSON() {

@@ -30,0 +30,0 @@ let result = {};

@@ -8,2 +8,5 @@ "use strict";

class ObjectType extends Type_1.Type {
static isInstanceOf(type) {
return type.name == ObjectType.TYPE;
}
constructor(name) {

@@ -24,5 +27,2 @@ super(name);

}
static isInstanceOf(type) {
return type.name == ObjectType.TYPE;
}
setupVariables(schema) {

@@ -29,0 +29,0 @@ this.idVar = schema.variable('id', primitives_1.PrimitiveType.TEXT);

@@ -6,8 +6,8 @@ "use strict";

class AttachmentType extends Type_1.Type {
static isInstanceOf(type) {
return type.name === AttachmentType.TYPE;
}
constructor() {
super(AttachmentType.TYPE);
}
static isInstanceOf(type) {
return type.name === AttachmentType.TYPE;
}
}

@@ -14,0 +14,0 @@ exports.AttachmentType = AttachmentType;

@@ -6,8 +6,8 @@ "use strict";

class BooleanType extends ChoiceType_1.ChoiceType {
static isInstanceOf(type) {
return type.name === BooleanType.TYPE;
}
constructor() {
super(BooleanType.TYPE, { multiple: false });
}
static isInstanceOf(type) {
return type.name === BooleanType.TYPE;
}
}

@@ -14,0 +14,0 @@ exports.BooleanType = BooleanType;

@@ -7,2 +7,5 @@ "use strict";

class ChoiceType extends Type_1.Type {
static isInstanceOf(type) {
return 'options' in type && 'addOption' in type;
}
constructor(name, config) {

@@ -14,5 +17,2 @@ super(name);

}
static isInstanceOf(type) {
return 'options' in type && 'addOption' in type;
}
addOption(value, label, index) {

@@ -19,0 +19,0 @@ if (value in this.options) {

@@ -6,8 +6,8 @@ "use strict";

class TextType extends Type_1.Type {
static isInstanceOf(type) {
return type.name === TextType.TYPE;
}
constructor() {
super(TextType.TYPE, true);
}
static isInstanceOf(type) {
return type.name === TextType.TYPE;
}
toJSON() {

@@ -14,0 +14,0 @@ const json = {};

{
"name": "@journeyapps/parser-schema",
"version": "8.0.2",
"version": "8.0.3",
"description": "Journey Parser Schema library",

@@ -10,7 +10,7 @@ "main": "./dist/src/index.js",

"@journeyapps/evaluator": "6.2.3",
"@journeyapps/parser-common": "7.2.3"
"@journeyapps/parser-common": "8.0.0"
},
"devDependencies": {
"@journeyapps/core-test-helpers": "^4.1.1",
"@journeyapps/domparser": "^0.3.0"
"@journeyapps/domparser": "^0.4.1"
},

@@ -17,0 +17,0 @@ "files": [

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

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