Socket
Socket
Sign inDemoInstall

raml-xml-validation

Package Overview
Dependencies
1
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.15 to 0.1.0

2

bower.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc