raml-typesystem
Advanced tools
Comparing version 0.0.41 to 0.0.42
@@ -168,3 +168,3 @@ "use strict"; | ||
var example; | ||
if (exampleObj) { | ||
if (exampleObj != null) { | ||
var val = exampleObj.value; | ||
@@ -223,3 +223,3 @@ if (!val) { | ||
var exampleV = ms.example(); | ||
if (exampleV) { | ||
if (exampleV != null) { | ||
result.push(toExample(ms, ms.value(), undefined, true)); | ||
@@ -226,0 +226,0 @@ } |
@@ -986,4 +986,14 @@ "use strict"; | ||
try { | ||
var mm = st.match(this._value); | ||
if (!mm) { | ||
var matches = st.match(this._value); | ||
var gotMatch = false; | ||
if (matches) { | ||
for (var _i = 0, matches_1 = matches; _i < matches_1.length; _i++) { | ||
var m = matches_1[_i]; | ||
if (m.length == st.length) { | ||
gotMatch = true; | ||
break; | ||
} | ||
} | ||
} | ||
if (!gotMatch) { | ||
return new ts.Status(ts.Status.ERROR, 0, "string should match to " + this.value(), this); | ||
@@ -990,0 +1000,0 @@ } |
{ | ||
"name": "raml-typesystem", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -178,3 +178,3 @@ import rt=require("./typesystem") | ||
var example:Example; | ||
if (exampleObj) { | ||
if (exampleObj!=null) { | ||
var val = exampleObj.value; | ||
@@ -238,3 +238,3 @@ if (!val) { | ||
var exampleV=ms.example(); | ||
if (exampleV){ | ||
if (exampleV!=null){ | ||
result.push(toExample(ms, ms.value(), undefined, true)); | ||
@@ -241,0 +241,0 @@ } |
@@ -998,4 +998,13 @@ /// <reference path="../typings/main.d.ts" /> | ||
try { | ||
var mm=st.match(this._value); | ||
if (!mm){ | ||
var matches=st.match(this._value); | ||
var gotMatch = false; | ||
if (matches){ | ||
for(var m of matches){ | ||
if(m.length == st.length){ | ||
gotMatch = true; | ||
break; | ||
} | ||
} | ||
} | ||
if(!gotMatch){ | ||
return new ts.Status(ts.Status.ERROR, 0, "string should match to " + this.value(),this); | ||
@@ -1002,0 +1011,0 @@ } |
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
1821284
40835