raml-xml-validation
Advanced tools
Comparing version 0.0.15 to 0.1.0
{ | ||
"version": "0.0.11", | ||
"version": "0.1.0", | ||
"name": "raml-xml-validation-browser", | ||
@@ -4,0 +4,0 @@ "main": "browser_version_bower/index.js", |
@@ -6,3 +6,3 @@ export declare class XMLValidator { | ||
validate(xml: string, references?: XMLSchemaReference[]): Error[]; | ||
private remoteSchemas(refs); | ||
private remoteSchemas; | ||
} | ||
@@ -9,0 +9,0 @@ export declare class XMLSchemaReference { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var validator = require('xmllint-jsparser'); | ||
var validator = require('xmllint'); | ||
var XMLValidator = /** @class */ (function () { | ||
@@ -5,0 +5,0 @@ function XMLValidator(schema) { |
@@ -23,2 +23,3 @@ var webpack = require('webpack'); | ||
var config = { | ||
mode: 'production', | ||
entry: path.resolve(__dirname, "./dist/index.js"), | ||
@@ -28,5 +29,3 @@ | ||
path: path.resolve(__dirname, isNpm ? "./browser_version" : "./browser_version_bower"), | ||
library: ['RAML.XmlValidation'], | ||
library: 'RAML.XmlValidation', | ||
filename: 'index.js', | ||
@@ -36,13 +35,6 @@ libraryTarget: "umd" | ||
module: { | ||
loaders: [ | ||
{ test: /\.json$/, loader: "json" } | ||
] | ||
}, | ||
externals: [ | ||
{ | ||
"ws" : true | ||
} | ||
], | ||
externals: 'ws', | ||
node: { | ||
fs: 'empty', | ||
console: false, | ||
@@ -49,0 +41,0 @@ global: true, |
{ | ||
"name": "raml-xml-validation", | ||
"version": "0.0.15", | ||
"version": "0.1.0", | ||
"main": "dist/index.js", | ||
@@ -13,14 +13,14 @@ "license": "Apache-2.0", | ||
"type": "git", | ||
"url": "https://github.com/dreamflyer/raml-xml-validation.git" | ||
"url": "https://github.com/mulesoft-labs/raml-xml-validation.git" | ||
}, | ||
"typings": "./dist/index.d.ts", | ||
"dependencies": { | ||
"xmllint-jsparser": "0.0.3" | ||
"xmllint": "^0.1.1" | ||
}, | ||
"devDependencies": { | ||
"json-loader": "0.5.7", | ||
"rimraf": "*", | ||
"typescript": "3.0.1", | ||
"rimraf": "*", | ||
"json-loader": "0.5.7", | ||
"webpack": "1.15.0" | ||
"webpack": "^4.39.2" | ||
} | ||
} |
declare function require(arg: string): any; | ||
var validator = require('xmllint-jsparser'); | ||
var validator = require('xmllint'); | ||
@@ -15,10 +15,10 @@ export class XMLValidator { | ||
var result = validator.validateXML({xml: xml, schema: this.schema}); | ||
return (result && result.errors && result.errors.map((error: any) => new Error(error))) || []; | ||
} | ||
var schemas: string[] = this.remoteSchemas(references); | ||
schemas.push(this.schema); | ||
var result = validator.validateXML({xml: xml, schema: schemas}); | ||
@@ -30,3 +30,3 @@ | ||
} | ||
private remoteSchemas(refs: XMLSchemaReference[]): string[] { | ||
@@ -39,4 +39,4 @@ return refs.map(ref => ref.patchedContent); | ||
constructor(public originalPath: string, public virtualIndex: number, public patchedContent: string) { | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
19594
10
161
3
+ Addedxmllint@^0.1.1
+ Addedxmllint@0.1.1(transitive)
- Removedxmllint-jsparser@0.0.3
- Removedxmllint-jsparser@0.0.3(transitive)