raml-definition-system
Advanced tools
Comparing version 0.0.68 to 0.0.69
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var def = require("./definitionSystem"); | ||
@@ -300,2 +301,3 @@ var khttp = require("know-your-http-well"); | ||
}); | ||
//f.withEnumOptions(khttp.methods.map(x=>x.method.toLowerCase())) | ||
} | ||
@@ -302,0 +304,0 @@ }, |
@@ -1,3 +0,3 @@ | ||
/// <reference path="../typings/main.d.ts" /> | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var fs = require("fs"); | ||
@@ -4,0 +4,0 @@ var path = require("path"); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
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]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.rt = require("raml-typesystem"); | ||
@@ -35,6 +41,6 @@ var typeSystem = exports.rt.nominalTypes; | ||
typeSystem.registerInjector(exports.injector); | ||
var AbstractType = (function (_super) { | ||
var AbstractType = /** @class */ (function (_super) { | ||
__extends(AbstractType, _super); | ||
function AbstractType() { | ||
_super.apply(this, arguments); | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
@@ -44,6 +50,6 @@ return AbstractType; | ||
exports.AbstractType = AbstractType; | ||
var ValueType = (function (_super) { | ||
var ValueType = /** @class */ (function (_super) { | ||
__extends(ValueType, _super); | ||
function ValueType() { | ||
_super.apply(this, arguments); | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
@@ -53,3 +59,3 @@ return ValueType; | ||
exports.ValueType = ValueType; | ||
var SourceProvider = (function () { | ||
var SourceProvider = /** @class */ (function () { | ||
function SourceProvider() { | ||
@@ -83,7 +89,8 @@ } | ||
exports.isSourceProvider = isSourceProvider; | ||
var EnumType = (function (_super) { | ||
var EnumType = /** @class */ (function (_super) { | ||
__extends(EnumType, _super); | ||
function EnumType() { | ||
_super.apply(this, arguments); | ||
this.values = []; | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
_this.values = []; | ||
return _this; | ||
} | ||
@@ -109,7 +116,8 @@ EnumType.isInstance = function (instance) { | ||
exports.EnumType = EnumType; | ||
var ReferenceType = (function (_super) { | ||
var ReferenceType = /** @class */ (function (_super) { | ||
__extends(ReferenceType, _super); | ||
function ReferenceType(name, path, referenceTo, _universe) { | ||
_super.call(this, name, _universe, path); | ||
this.referenceTo = referenceTo; | ||
var _this = _super.call(this, name, _universe, path) || this; | ||
_this.referenceTo = referenceTo; | ||
return _this; | ||
} | ||
@@ -141,7 +149,7 @@ ReferenceType.isInstance = function (instance) { | ||
exports.ReferenceType = ReferenceType; | ||
var NodeClass = (function (_super) { | ||
var NodeClass = /** @class */ (function (_super) { | ||
__extends(NodeClass, _super); | ||
function NodeClass(_name, universe, path, _description) { | ||
if (_description === void 0) { _description = ""; } | ||
_super.call(this, _name, universe, path); | ||
return _super.call(this, _name, universe, path) || this; | ||
} | ||
@@ -171,7 +179,8 @@ NodeClass.isInstance = function (instance) { | ||
exports.NodeClass = NodeClass; | ||
var UserDefinedClass = (function (_super) { | ||
var UserDefinedClass = /** @class */ (function (_super) { | ||
__extends(UserDefinedClass, _super); | ||
function UserDefinedClass(name, universe, hl, path, description) { | ||
_super.call(this, name, universe, path, description); | ||
this.getAdapter(RAMLService).setDeclaringNode(hl); | ||
var _this = _super.call(this, name, universe, path, description) || this; | ||
_this.getAdapter(RAMLService).setDeclaringNode(hl); | ||
return _this; | ||
} | ||
@@ -255,6 +264,6 @@ UserDefinedClass.isInstance = function (instance) { | ||
exports.isUserDefinedClass = isUserDefinedClass; | ||
var AnnotationType = (function (_super) { | ||
var AnnotationType = /** @class */ (function (_super) { | ||
__extends(AnnotationType, _super); | ||
function AnnotationType() { | ||
_super.apply(this, arguments); | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
@@ -283,3 +292,3 @@ AnnotationType.prototype.allProperties = function (ps) { | ||
exports.AnnotationType = AnnotationType; | ||
var Universe = (function (_super) { | ||
var Universe = /** @class */ (function (_super) { | ||
__extends(Universe, _super); | ||
@@ -290,9 +299,10 @@ function Universe(dec, name, _parent, v) { | ||
if (v === void 0) { v = "RAML08"; } | ||
_super.call(this, name); | ||
this._parent = _parent; | ||
this._classes = []; | ||
this._uversion = "RAML08"; | ||
this.aMap = {}; | ||
this.matchedObjects = dec; | ||
this._uversion = v; | ||
var _this = _super.call(this, name) || this; | ||
_this._parent = _parent; | ||
_this._classes = []; | ||
_this._uversion = "RAML08"; | ||
_this.aMap = {}; | ||
_this.matchedObjects = dec; | ||
_this._uversion = v; | ||
return _this; | ||
} | ||
@@ -405,3 +415,3 @@ Universe.prototype.matched = function () { | ||
exports.prop = prop; | ||
var ChildValueConstraint = (function () { | ||
var ChildValueConstraint = /** @class */ (function () { | ||
function ChildValueConstraint(name, value) { | ||
@@ -414,19 +424,20 @@ this.name = name; | ||
exports.ChildValueConstraint = ChildValueConstraint; | ||
var Property = (function (_super) { | ||
var Property = /** @class */ (function (_super) { | ||
__extends(Property, _super); | ||
function Property() { | ||
_super.apply(this, arguments); | ||
this._isFromParentValue = false; | ||
this._isFromParentKey = false; | ||
this._key = false; | ||
this._declaresFields = false; | ||
this._describes = null; | ||
this._canBeDuplicator = false; | ||
this._allowsNull = false; | ||
this._canBeValue = false; | ||
this._isInherited = false; | ||
this._selfNode = false; | ||
this._noDirectParse = false; | ||
this._contextReq = []; | ||
this.determinesChildValues = []; | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
_this._isFromParentValue = false; | ||
_this._isFromParentKey = false; | ||
_this._key = false; | ||
_this._declaresFields = false; | ||
_this._describes = null; | ||
_this._canBeDuplicator = false; | ||
_this._allowsNull = false; | ||
_this._canBeValue = false; | ||
_this._isInherited = false; | ||
_this._selfNode = false; | ||
_this._noDirectParse = false; | ||
_this._contextReq = []; | ||
_this.determinesChildValues = []; | ||
return _this; | ||
} | ||
@@ -656,7 +667,8 @@ Property.isInstance = function (instance) { | ||
exports.Property = Property; | ||
var UserDefinedProp = (function (_super) { | ||
var UserDefinedProp = /** @class */ (function (_super) { | ||
__extends(UserDefinedProp, _super); | ||
function UserDefinedProp(name, source) { | ||
_super.call(this, name); | ||
this._node = source; | ||
var _this = _super.call(this, name) || this; | ||
_this._node = source; | ||
return _this; | ||
} | ||
@@ -697,3 +709,3 @@ UserDefinedProp.isInstance = function (instance) { | ||
exports.UserDefinedProp = UserDefinedProp; | ||
var RAMLPropertyDocumentationService = (function () { | ||
var RAMLPropertyDocumentationService = /** @class */ (function () { | ||
function RAMLPropertyDocumentationService() { | ||
@@ -728,6 +740,6 @@ } | ||
exports.RAMLPropertyDocumentationService = RAMLPropertyDocumentationService; | ||
var RAMLPropertyParserService = (function (_super) { | ||
var RAMLPropertyParserService = /** @class */ (function (_super) { | ||
__extends(RAMLPropertyParserService, _super); | ||
function RAMLPropertyParserService() { | ||
_super.apply(this, arguments); | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
@@ -751,11 +763,12 @@ RAMLPropertyParserService.prototype.isSystem = function () { | ||
exports.RAMLPropertyParserService = RAMLPropertyParserService; | ||
var RAMLPropertyService = (function (_super) { | ||
var RAMLPropertyService = /** @class */ (function (_super) { | ||
__extends(RAMLPropertyService, _super); | ||
function RAMLPropertyService(_property) { | ||
_super.call(this); | ||
this._property = _property; | ||
this._meta = {}; | ||
var _this = _super.call(this) || this; | ||
_this._property = _property; | ||
_this._meta = {}; | ||
if (!_property) { | ||
throw new Error(); | ||
} | ||
return _this; | ||
} | ||
@@ -840,3 +853,3 @@ RAMLPropertyService.prototype.valueDocProvider = function () { | ||
exports.RAMLPropertyService = RAMLPropertyService; | ||
var RAMLService = (function () { | ||
var RAMLService = /** @class */ (function () { | ||
function RAMLService(d) { | ||
@@ -843,0 +856,0 @@ //!!! |
@@ -1,3 +0,3 @@ | ||
/// <reference path="../typings/main.d.ts" /> | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var fs = require("fs"); | ||
@@ -4,0 +4,0 @@ var path = require("path"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.universeDumps = { | ||
@@ -3,0 +4,0 @@ RAML08: toModule(require("./RAML08")), |
@@ -1,4 +0,3 @@ | ||
/// <reference path="../typings/main.d.ts" /> | ||
import tsModel = require("ts-structure-parser"); | ||
import def = require("./definitionSystem"); | ||
export declare function toDefSystem(ts: tsModel.Module, q: any): def.Universe; |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
/// <reference path="../typings/main.d.ts" /> | ||
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]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tsModel = require("ts-structure-parser"); | ||
@@ -13,3 +18,3 @@ var def = require("./definitionSystem"); | ||
var services = def; | ||
var FieldWrapper = (function () { | ||
var FieldWrapper = /** @class */ (function () { | ||
function FieldWrapper(_field, _clazz) { | ||
@@ -39,3 +44,3 @@ this._field = _field; | ||
}()); | ||
var FieldConstraint = (function () { | ||
var FieldConstraint = /** @class */ (function () { | ||
function FieldConstraint(_field, _clazz) { | ||
@@ -53,3 +58,3 @@ this._field = _field; | ||
}()); | ||
var ClassWrapper = (function () { | ||
var ClassWrapper = /** @class */ (function () { | ||
function ClassWrapper(_clazz, mw) { | ||
@@ -136,3 +141,3 @@ this._clazz = _clazz; | ||
}()); | ||
var AbstractSimpleWrapper = (function () { | ||
var AbstractSimpleWrapper = /** @class */ (function () { | ||
function AbstractSimpleWrapper() { | ||
@@ -168,8 +173,9 @@ } | ||
}()); | ||
var EnumWrapper = (function (_super) { | ||
var EnumWrapper = /** @class */ (function (_super) { | ||
__extends(EnumWrapper, _super); | ||
function EnumWrapper(_clazz, mw) { | ||
_super.call(this); | ||
this._clazz = _clazz; | ||
this.mw = mw; | ||
var _this = _super.call(this) || this; | ||
_this._clazz = _clazz; | ||
_this.mw = mw; | ||
return _this; | ||
} | ||
@@ -187,8 +193,9 @@ EnumWrapper.prototype.getModule = function () { | ||
}(AbstractSimpleWrapper)); | ||
var UnionWrapper = (function (_super) { | ||
var UnionWrapper = /** @class */ (function (_super) { | ||
__extends(UnionWrapper, _super); | ||
function UnionWrapper(_clazz, mw) { | ||
_super.call(this); | ||
this._clazz = _clazz; | ||
this.mw = mw; | ||
var _this = _super.call(this) || this; | ||
_this._clazz = _clazz; | ||
_this.mw = mw; | ||
return _this; | ||
} | ||
@@ -203,3 +210,3 @@ UnionWrapper.prototype.elements = function () { | ||
}(AbstractSimpleWrapper)); | ||
var ModuleWrapper = (function () { | ||
var ModuleWrapper = /** @class */ (function () { | ||
function ModuleWrapper(_univers) { | ||
@@ -304,2 +311,3 @@ var _this = this; | ||
throw new Error("Union type support was removed from definition system"); | ||
//rangeType = new def.UnionType(uw.elements().map(x=>wrapperToType(x, u))) | ||
} | ||
@@ -477,2 +485,3 @@ else { | ||
return; | ||
// throw new Error("Module "+pMod.name+" is part of the cycle "+ts.name+" on stack "+Object.keys(used).join(",")) | ||
} | ||
@@ -528,2 +537,3 @@ var vMod = processModule(pMod, u, used, declared); | ||
} | ||
//rs+=genRef(tp) | ||
} | ||
@@ -530,0 +540,0 @@ if (cl.getAdapter(services.RAMLService).getConvertsToGlobal()) { |
{ | ||
"name": "raml-definition-system", | ||
"version": "0.0.68", | ||
"version": "0.0.69", | ||
"main": "dist/definitionSystem.js", | ||
@@ -17,4 +17,4 @@ "scripts": { | ||
"know-your-http-well": "^0.2.0", | ||
"raml-typesystem": "0.0.74", | ||
"ts-structure-parser": "0.0.12", | ||
"raml-typesystem": "0.0.75", | ||
"ts-structure-parser": "0.0.13", | ||
"underscore": "^1.8.3" | ||
@@ -39,4 +39,5 @@ }, | ||
"devDependencies": { | ||
"typescript": "^1.8.9", | ||
"typings": "^0.7.9", | ||
"@types/node": "4.2.20", | ||
"@types/underscore": "1.8.3", | ||
"typescript": "2.5.2", | ||
"dev-env-installer":"0.0.5", | ||
@@ -43,0 +44,0 @@ "json-loader": "^0.5.1", |
@@ -20,3 +20,2 @@ # RAML Definition System | ||
``` | ||
typings install | ||
npm install | ||
@@ -23,0 +22,0 @@ ``` |
@@ -1,3 +0,1 @@ | ||
/// <reference path="../typings/main.d.ts" /> | ||
import fs=require("fs"); | ||
@@ -4,0 +2,0 @@ import path=require("path") |
@@ -1,3 +0,1 @@ | ||
/// <reference path="../typings/main.d.ts" /> | ||
import fs = require("fs") | ||
@@ -4,0 +2,0 @@ import path = require("path") |
@@ -1,2 +0,1 @@ | ||
/// <reference path="../typings/main.d.ts" /> | ||
import tsModel=require("ts-structure-parser") | ||
@@ -3,0 +2,0 @@ import def=require("./definitionSystem") |
@@ -1,3 +0,1 @@ | ||
/// <reference path="browser/ambient/know-your-http-well/know-your-http-well.d.ts" /> | ||
/// <reference path="browser/ambient/node/node.d.ts" /> | ||
/// <reference path="browser/ambient/underscore/underscore.d.ts" /> | ||
/// <reference path="browser/ambient/know-your-http-well/index.d.ts" /> |
@@ -1,3 +0,1 @@ | ||
/// <reference path="main/ambient/know-your-http-well/know-your-http-well.d.ts" /> | ||
/// <reference path="main/ambient/node/node.d.ts" /> | ||
/// <reference path="main/ambient/underscore/underscore.d.ts" /> | ||
/// <reference path="main/ambient/know-your-http-well/index.d.ts" /> |
@@ -5,4 +5,3 @@ { | ||
"test" : "gulp test", | ||
"gitUrl" : "https://github.com/raml-org/raml-js-parser-2.git", | ||
"installTypings" : true | ||
"gitUrl" : "https://github.com/raml-org/raml-js-parser-2.git" | ||
}, | ||
@@ -12,4 +11,3 @@ "raml-definition-system" : { | ||
"gitUrl" : "https://github.com/raml-org/raml-definition-system.git", | ||
"gitBranch" : false, | ||
"installTypings" : true | ||
"gitBranch" : false | ||
}, | ||
@@ -19,19 +17,15 @@ "raml-typesystem" : { | ||
"test" : "npm run test-cov", | ||
"gitUrl" : "https://github.com/raml-org/typesystem-ts.git", | ||
"installTypings" : true | ||
"gitUrl" : "https://github.com/raml-org/raml-typesystem.git" | ||
}, | ||
"raml-xml-validation" : { | ||
"build" : "npm run build", | ||
"gitUrl" : "https://github.com/mulesoft-labs/raml-xml-validation.git", | ||
"installTypings" : true | ||
"gitUrl" : "https://github.com/mulesoft-labs/raml-xml-validation.git" | ||
}, | ||
"raml-json-validation" : { | ||
"build" : "npm run build", | ||
"gitUrl" : "https://github.com/mulesoft-labs/raml-json-validation.git", | ||
"installTypings" : true | ||
"gitUrl" : "https://github.com/mulesoft-labs/raml-json-validation.git" | ||
}, | ||
"ts-structure-parser" : { | ||
"build" : "npm run build", | ||
"gitUrl" : "https://github.com/mulesoft-labs/ts-structure-parser.git", | ||
"installTypings" : true | ||
"gitUrl" : "https://github.com/mulesoft-labs/ts-structure-parser.git" | ||
}, | ||
@@ -44,5 +38,4 @@ "yaml-ast-parser" : { | ||
"build" : "npm run build", | ||
"gitUrl" : "https://github.com/mulesoft-labs/ts-model.git", | ||
"installTypings" : true | ||
"gitUrl" : "https://github.com/mulesoft-labs/ts-model.git" | ||
} | ||
} |
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
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
1672264
71
47995
6
58
+ Addedraml-json-validation@0.0.13(transitive)
+ Addedraml-typesystem@0.0.75(transitive)
+ Addedraml-xml-validation@0.0.12(transitive)
+ Addedts-structure-parser@0.0.13(transitive)
+ Addedtypescript@2.5.2(transitive)
- Removedraml-json-validation@0.0.12(transitive)
- Removedraml-typesystem@0.0.74(transitive)
- Removedraml-xml-validation@0.0.11(transitive)
- Removedts-structure-parser@0.0.12(transitive)
- Removedtypescript@1.8.7(transitive)
Updatedraml-typesystem@0.0.75
Updatedts-structure-parser@0.0.13