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

raml-typesystem

Package Overview
Dependencies
Maintainers
2
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raml-typesystem - npm Package Compare versions

Comparing version 0.0.88 to 0.0.89

9

dist/src/datetime.js
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
}
return function (d, b) {

@@ -7,0 +10,0 @@ extendStatics(d, b);

@@ -192,3 +192,3 @@ export import tsInterfaces = require("./typesystem-interfaces");

ARRAY = 1,
MAP = 2,
MAP = 2
}

@@ -195,0 +195,0 @@ /**

@@ -8,3 +8,3 @@ import { AbstractType } from "./typesystem";

generateRef(t: AbstractType): any;
getType(t: AbstractType): "unknown" | "string" | "object" | "number" | "array" | "boolean";
getType(t: AbstractType): "unknown" | "object" | "string" | "number" | "array" | "boolean";
getResult(): any;

@@ -11,0 +11,0 @@ store(t: AbstractType): any;

"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
}
return function (d, b) {

@@ -7,0 +10,0 @@ extendStatics(d, b);

@@ -149,3 +149,3 @@ import ti = require("./nominal-interfaces");

allSuperTypes(): ITypeDefinition[];
private allSuperTypesRecurrent(t, m, result);
private allSuperTypesRecurrent;
addSuperType(q: AbstractType): void;

@@ -156,5 +156,5 @@ addRequirement(name: string, value: string): void;

printDetails(indent?: string, settings?: IPrintDetailsSettings): string;
private getTypeClassName();
private getTypeClassName;
buildIn: boolean;
private isStandardSuperclass(nameId, className);
private isStandardSuperclass;
/**

@@ -203,3 +203,3 @@ * Returns example for this type.

getExtra(name: string): any;
private getExtraAdapter();
private getExtraAdapter;
}

@@ -206,0 +206,0 @@ export declare class ValueType extends AbstractType implements ITypeDefinition {

"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
}
return function (d, b) {

@@ -7,0 +10,0 @@ extendStatics(d, b);

@@ -10,3 +10,3 @@ import ts = require("./typesystem");

ARRAY = 1,
MAP = 2,
MAP = 2
}

@@ -13,0 +13,0 @@ export interface ParseNode {

"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
}
return function (d, b) {

@@ -1069,3 +1072,3 @@ extendStatics(d, b);

// }
{
{ //else {
var customFacet = new meta.CustomFacet(key, x.value());

@@ -1072,0 +1075,0 @@ customFacet.setNode(x);

@@ -147,3 +147,3 @@ import ts = require("./typesystem");

requiredTypes(): ts.AbstractType[];
private checkOwner(requiredType);
private checkOwner;
validateSelfIndividual(superStatus: ts.Status, registry: ts.TypeRegistry): ts.Status;

@@ -150,0 +150,0 @@ }

"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
}
return function (d, b) {

@@ -7,0 +10,0 @@ extendStatics(d, b);

@@ -38,6 +38,6 @@ import tsInterfaces = require("./typesystem-interfaces");

getMissingReferences(references: any[], normalize?: boolean): any[];
private getSchemaPath(schema, normalize?);
private patchSchema(schema);
private removeFragmentPartOfIDs(obj);
private collectRefContainers(rootObject, refContainers);
private getSchemaPath;
private patchSchema;
private removeFragmentPartOfIDs;
private collectRefContainers;
validate(content: any, alreadyAccepted?: any[]): void;

@@ -53,8 +53,8 @@ /**

validateSelf(alreadyAccepted?: any[]): void;
private setupId(json, path);
private acceptErrors(key, errors, exampleContent, throwImmediately?, isWarning?);
private setupId;
private acceptErrors;
contentAsync(_reference: any): Promise;
private static SCHEMA_ERROR_CODES;
private static EXAMPLE_ERROR_CODES;
private updateGraph(json, schemaPath);
private updateGraph;
}

@@ -80,7 +80,7 @@ export interface ValidationError {

getMissingReferences(): string[];
private collectReferencesAsync(xmlString, context, references);
private collectReferencesAsync;
loadSchemaReferencesAsync(): Promise;
validate(xml: any): void;
private handleReferenceElement(content);
private acceptErrors(key, errors, throwImmediately?);
private handleReferenceElement;
private acceptErrors;
}

@@ -87,0 +87,0 @@ export interface Schema {

@@ -94,3 +94,3 @@ export interface IValidationPath {

SkipValidation = 23,
TypeAttributeValue = 24,
TypeAttributeValue = 24
}

@@ -97,0 +97,0 @@ /**

@@ -129,3 +129,3 @@ import su = require("./schemaUtil");

private _parent;
protected _c: parse.TypeCollection;
protected _c?: parse.TypeCollection;
protected isAnnotationsReg: boolean;

@@ -142,3 +142,3 @@ private _types;

getByChain(name: string): AbstractType;
private getTypeByChainFromCollection(name, collection);
private getTypeByChainFromCollection;
constructor(_parent?: TypeRegistry, _c?: parse.TypeCollection, isAnnotationsReg?: boolean);

@@ -156,3 +156,3 @@ types(): AbstractType[];

constructor(_conflicting: Constraint, _stack: RestrictionStackEntry, source: any);
private computeMessage();
private computeMessage;
getConflictDescription(): string;

@@ -180,5 +180,5 @@ getConflicting(): Constraint;

setRequired(val: boolean): void;
private property();
private mapProperty();
private additionalProperty();
private property;
private mapProperty;
private additionalProperty;
annotations(): tsInterfaces.IAnnotation[];

@@ -239,9 +239,9 @@ }

validateHierarchy(rs: Status): void;
private familyWithArray();
private familyWithArray;
validateMeta(tr: TypeRegistry): Status;
private validateFacets(rs);
private validateFacets;
allSuperTypes(): AbstractType[];
private fillSuperTypes(r, forValidation?);
private fillSuperTypes;
allSubTypes(): AbstractType[];
private fillSubTypes(r);
private fillSubTypes;
inherit(name: string): InheritedType;

@@ -380,6 +380,6 @@ /**

};
private sAnnotations(facets);
private sAnnotations;
componentType(): tsInterfaces.IParsedType;
canDoAc(): Status;
private emptyIntersectionOrDiscriminator(t0, t1);
private emptyIntersectionOrDiscriminator;
protected propertyInfos: PropertyInfo[];

@@ -414,3 +414,3 @@ protected propertiesMap: {

declareProperty(name: string, t: AbstractType, optional: boolean): AbstractType;
private discriminate(obj, opt);
private discriminate;
/**

@@ -600,4 +600,4 @@ * return instance of type information of particular class

private val;
private _extraMessage;
private _extraOptionMessage;
private _extraMessage?;
private _extraOptionMessage?;
constructor(val: Constraint[], _extraMessage?: any, _extraOptionMessage?: any);

@@ -604,0 +604,0 @@ check(i: any, p: tsInterfaces.IValidationPath): Status;

{
"name": "raml-typesystem",
"version": "0.0.88",
"version": "0.0.89",
"main": "dist/src/index.js",

@@ -22,3 +22,3 @@ "scripts": {

"lrucache": "1.0.3",
"underscore": "1.8.3",
"underscore": "1.9.1",
"xml2js": "0.4.19",

@@ -28,4 +28,4 @@ "xmldom": "0.1.27"

"optionalDependencies": {
"raml-xml-validation": "0.0.14",
"raml-json-validation": "0.0.17"
"raml-xml-validation": "0.0.15",
"raml-json-validation": "0.0.18"
},

@@ -64,3 +64,3 @@ "browser": {

"typedoc": "0.3.12",
"typescript": "2.5.2",
"typescript": "3.0.1",
"dev-env-installer": "0.0.14",

@@ -67,0 +67,0 @@ "json-loader": "0.5.7",

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

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 too big to display

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