New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@journeyapps/core-xml

Package Overview
Dependencies
Maintainers
2
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@journeyapps/core-xml - npm Package Compare versions

Comparing version 0.0.0-dev.b651de2.2e56f6c to 0.0.0-dev.b87c3cb.f152454

41

dist/src/xml.js

@@ -197,3 +197,4 @@ "use strict";

};
if (type == null) {
// The specific tag exclusions if for the specs
if (type == null && tag != 'context-menu' && tag != 'button') {
result.type = null;

@@ -287,19 +288,31 @@ result.errors.push(warning(element, "Invalid element '" + tag + "'"));

return function (valuesString, element) {
var values = valuesString.split(',');
var invalidValues = [];
Array.prototype.forEach.call(values, function (value) {
if (options.indexOf(value) == -1) {
invalidValues.push(value);
}
});
if (invalidValues.length === 0) {
return validateMultiOptions(valuesString, element, options, customMessage);
};
};
exports.attribute.multiOptionListWithFunctions = function multiOptionList(options, functionPrefix, customMessage) {
return function (valuesString, element) {
if (valuesString.indexOf(functionPrefix) === 0) {
// function token expression, therefore allow
return valuesString;
}
else {
var message = 'Invalid values: ' + invalidValues + '. ';
var extraMessage = customMessage == null ? element.name + ' values must be from ' + options : customMessage;
throw new Error(message + extraMessage);
}
return validateMultiOptions(valuesString, element, options, customMessage);
};
};
function validateMultiOptions(valuesString, element, options, customMessage) {
var values = valuesString.split(',');
var invalidValues = [];
values.forEach((value) => {
if (options.indexOf(value) == -1) {
invalidValues.push(value);
}
});
if (invalidValues.length === 0) {
return valuesString;
}
else {
var message = 'Invalid values: ' + invalidValues + '. ';
var extraMessage = customMessage == null ? element.name + ' values must be from ' + options : customMessage;
throw new Error(message + extraMessage);
}
}
// filter can be an array of strings, or a comma-separated list

@@ -306,0 +319,0 @@ function children(element, filter) {

{
"name": "@journeyapps/core-xml",
"version": "0.0.0-dev.b651de2.2e56f6c",
"version": "0.0.0-dev.b87c3cb.f152454",
"description": "Journey JS library",

@@ -18,3 +18,3 @@ "main": "./dist/src/node.js",

"devDependencies": {
"@journeyapps/core-test-helpers": "0.0.0-dev.b651de2.2e56f6c"
"@journeyapps/core-test-helpers": "0.0.0-dev.b87c3cb.f152454"
},

@@ -26,3 +26,3 @@ "files": [

],
"gitHead": "fc9f6032660329a8ca142b4cc7173147dc72c6c9"
"gitHead": "72f18d4d41af20af55fd1c2a21efca09f5150b31"
}

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