@xml-tools/ast
Advanced tools
Comparing version 0.4.5 to 0.4.6
@@ -1,1 +0,1 @@ | ||
{"processes":{"77619506-41de-49d0-a00e-e9fe7d7b5502":{"parent":null,"children":[]}},"files":{"/home/circleci/repo/packages/ast/lib/api.js":["77619506-41de-49d0-a00e-e9fe7d7b5502"],"/home/circleci/repo/packages/ast/lib/build-ast.js":["77619506-41de-49d0-a00e-e9fe7d7b5502"],"/home/circleci/repo/packages/ast/lib/utils.js":["77619506-41de-49d0-a00e-e9fe7d7b5502"],"/home/circleci/repo/packages/ast/lib/visit-ast.js":["77619506-41de-49d0-a00e-e9fe7d7b5502"]},"externalIds":{}} | ||
{"processes":{"ce2749a5-7674-4ae1-afca-97c0e5020d62":{"parent":null,"children":[]}},"files":{"/home/circleci/repo/packages/ast/lib/api.js":["ce2749a5-7674-4ae1-afca-97c0e5020d62"],"/home/circleci/repo/packages/ast/lib/build-ast.js":["ce2749a5-7674-4ae1-afca-97c0e5020d62"],"/home/circleci/repo/packages/ast/lib/utils.js":["ce2749a5-7674-4ae1-afca-97c0e5020d62"],"/home/circleci/repo/packages/ast/lib/visit-ast.js":["ce2749a5-7674-4ae1-afca-97c0e5020d62"]},"externalIds":{}} |
@@ -6,2 +6,6 @@ # Change Log | ||
## [0.4.6](https://github.com/sap/xml-tools/compare/@xml-tools/ast@0.4.5...@xml-tools/ast@0.4.6) (2019-12-03) | ||
**Note:** Version bump only for package @xml-tools/ast | ||
## [0.4.5](https://github.com/sap/xml-tools/compare/@xml-tools/ast@0.4.4...@xml-tools/ast@0.4.5) (2019-11-20) | ||
@@ -8,0 +12,0 @@ |
@@ -262,3 +262,3 @@ const { BaseXmlCstVisitor } = require("@xml-tools/parser"); | ||
if (attrib.key !== invalidSyntax) { | ||
const nsMatch = /^xmlns:([^:]+)$/.exec(attrib.key); | ||
const nsMatch = /^xmlns(?::([^:]+))?$/.exec(attrib.key); | ||
if (nsMatch !== null) { | ||
@@ -265,0 +265,0 @@ const prefix = nsMatch[1]; |
{ | ||
"name": "@xml-tools/ast", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"description": "XML Ast and Utilities", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "01bbfd14ea0a4e90b4fe19058fa2720a2b8b7330" | ||
"gitHead": "87ecd7f8820974fbb9af3c0858660a31487772cd" | ||
} |
@@ -6,3 +6,6 @@ module.exports = { | ||
type: "XMLElement", | ||
namespaces: [{ prefix: "f", uri: "https://blah.com/furniture" }], | ||
namespaces: [ | ||
{ prefix: "f", uri: "https://blah.com/furniture" }, | ||
{ prefix: undefined, uri: "https://blah.com/default" } | ||
], | ||
name: "table", | ||
@@ -23,2 +26,16 @@ attributes: [ | ||
} | ||
}, | ||
{ | ||
type: "XMLAttribute", | ||
position: { startOffset: 47, endOffset: 78 }, | ||
key: "xmlns", | ||
value: "https://blah.com/default", | ||
syntax: { | ||
key: { image: "xmlns", startOffset: 47, endOffset: 51 }, | ||
value: { | ||
image: '"https://blah.com/default"', | ||
startOffset: 53, | ||
endOffset: 78 | ||
} | ||
} | ||
} | ||
@@ -29,3 +46,6 @@ ], | ||
type: "XMLElement", | ||
namespaces: [{ prefix: "f", uri: "https://blah.com/furniture" }], | ||
namespaces: [ | ||
{ prefix: "f", uri: "https://blah.com/furniture" }, | ||
{ prefix: undefined, uri: "https://blah.com/default" } | ||
], | ||
name: "name", | ||
@@ -37,11 +57,11 @@ attributes: [], | ||
type: "XMLTextContent", | ||
position: { startOffset: 60, endOffset: 69 }, | ||
position: { startOffset: 93, endOffset: 102 }, | ||
text: "Some Chair" | ||
} | ||
], | ||
position: { startOffset: 52, endOffset: 78 }, | ||
position: { startOffset: 85, endOffset: 111 }, | ||
syntax: { | ||
openName: { image: "f:name", startOffset: 53, endOffset: 58 }, | ||
openBody: { startOffset: 52, endOffset: 59 }, | ||
closeName: { image: "f:name", startOffset: 72, endOffset: 77 } | ||
openName: { image: "f:name", startOffset: 86, endOffset: 91 }, | ||
openBody: { startOffset: 85, endOffset: 92 }, | ||
closeName: { image: "f:name", startOffset: 105, endOffset: 110 } | ||
}, | ||
@@ -52,3 +72,6 @@ ns: "f" | ||
type: "XMLElement", | ||
namespaces: [{ prefix: "f", uri: "https://blah.com/furniture" }], | ||
namespaces: [ | ||
{ prefix: "f", uri: "https://blah.com/furniture" }, | ||
{ prefix: undefined, uri: "https://blah.com/default" } | ||
], | ||
name: "width", | ||
@@ -60,11 +83,11 @@ attributes: [], | ||
type: "XMLTextContent", | ||
position: { startOffset: 93, endOffset: 94 }, | ||
position: { startOffset: 126, endOffset: 127 }, | ||
text: "50" | ||
} | ||
], | ||
position: { startOffset: 84, endOffset: 104 }, | ||
position: { startOffset: 117, endOffset: 137 }, | ||
syntax: { | ||
openName: { image: "f:width", startOffset: 85, endOffset: 91 }, | ||
openBody: { startOffset: 84, endOffset: 92 }, | ||
closeName: { image: "f:width", startOffset: 97, endOffset: 103 } | ||
openName: { image: "f:width", startOffset: 118, endOffset: 124 }, | ||
openBody: { startOffset: 117, endOffset: 125 }, | ||
closeName: { image: "f:width", startOffset: 130, endOffset: 136 } | ||
}, | ||
@@ -75,3 +98,6 @@ ns: "f" | ||
type: "XMLElement", | ||
namespaces: [{ prefix: "f", uri: "https://blah.com/furniture" }], | ||
namespaces: [ | ||
{ prefix: "f", uri: "https://blah.com/furniture" }, | ||
{ prefix: undefined, uri: "https://blah.com/default" } | ||
], | ||
name: "length", | ||
@@ -83,13 +109,44 @@ attributes: [], | ||
type: "XMLTextContent", | ||
position: { startOffset: 120, endOffset: 121 }, | ||
position: { startOffset: 153, endOffset: 154 }, | ||
text: "67" | ||
} | ||
], | ||
position: { startOffset: 110, endOffset: 132 }, | ||
position: { startOffset: 143, endOffset: 165 }, | ||
syntax: { | ||
openName: { image: "f:length", startOffset: 111, endOffset: 118 }, | ||
openBody: { startOffset: 110, endOffset: 119 }, | ||
closeName: { image: "f:length", startOffset: 124, endOffset: 131 } | ||
openName: { image: "f:length", startOffset: 144, endOffset: 151 }, | ||
openBody: { startOffset: 143, endOffset: 152 }, | ||
closeName: { image: "f:length", startOffset: 157, endOffset: 164 } | ||
}, | ||
ns: "f" | ||
}, | ||
{ | ||
type: "XMLElement", | ||
namespaces: [ | ||
{ prefix: "f", uri: "https://blah.com/furniture" }, | ||
{ prefix: undefined, uri: "https://blah.com/default" } | ||
], | ||
name: "description", | ||
attributes: [], | ||
subElements: [], | ||
textContents: [ | ||
{ | ||
type: "XMLTextContent", | ||
position: { startOffset: 184, endOffset: 195 }, | ||
text: "Awsome Chair" | ||
} | ||
], | ||
position: { startOffset: 171, endOffset: 209 }, | ||
syntax: { | ||
openName: { | ||
image: "description", | ||
startOffset: 172, | ||
endOffset: 182 | ||
}, | ||
openBody: { startOffset: 171, endOffset: 183 }, | ||
closeName: { | ||
image: "description", | ||
startOffset: 198, | ||
endOffset: 208 | ||
} | ||
} | ||
} | ||
@@ -100,3 +157,3 @@ ], | ||
type: "XMLTextContent", | ||
position: { startOffset: 47, endOffset: 51 }, | ||
position: { startOffset: 80, endOffset: 84 }, | ||
text: "\n " | ||
@@ -106,3 +163,3 @@ }, | ||
type: "XMLTextContent", | ||
position: { startOffset: 79, endOffset: 83 }, | ||
position: { startOffset: 112, endOffset: 116 }, | ||
text: "\n " | ||
@@ -112,3 +169,3 @@ }, | ||
type: "XMLTextContent", | ||
position: { startOffset: 105, endOffset: 109 }, | ||
position: { startOffset: 138, endOffset: 142 }, | ||
text: "\n " | ||
@@ -118,16 +175,21 @@ }, | ||
type: "XMLTextContent", | ||
position: { startOffset: 133, endOffset: 133 }, | ||
position: { startOffset: 166, endOffset: 170 }, | ||
text: "\n " | ||
}, | ||
{ | ||
type: "XMLTextContent", | ||
position: { startOffset: 210, endOffset: 210 }, | ||
text: "\n" | ||
} | ||
], | ||
position: { startOffset: 1, endOffset: 143 }, | ||
position: { startOffset: 1, endOffset: 220 }, | ||
syntax: { | ||
openName: { image: "f:table", startOffset: 2, endOffset: 8 }, | ||
openBody: { startOffset: 1, endOffset: 46 }, | ||
closeName: { image: "f:table", startOffset: 136, endOffset: 142 } | ||
openBody: { startOffset: 1, endOffset: 79 }, | ||
closeName: { image: "f:table", startOffset: 213, endOffset: 219 } | ||
}, | ||
ns: "f" | ||
}, | ||
position: { startOffset: 0, endOffset: 144 } | ||
position: { startOffset: 0, endOffset: 221 } | ||
} | ||
}; |
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
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
215675
2901