+13
-7
| { | ||
| "//": [ | ||
| "glob is set to ^13.0.0 to fix a security vulnerability in the previous version" | ||
| ], | ||
| "name": "xmldoc", | ||
@@ -9,4 +12,4 @@ "description": "A lightweight XML Document class for JavaScript.", | ||
| }, | ||
| "version": "2.0.2", | ||
| "packageManager": "yarn@4.7.0", | ||
| "version": "2.0.3", | ||
| "packageManager": "yarn@4.12.0", | ||
| "type": "commonjs", | ||
@@ -61,10 +64,10 @@ "main": "./lib/xmldoc.js", | ||
| "dependencies": { | ||
| "sax": "^1.2.4" | ||
| "sax": "^1.4.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/sax": "^1.2.7", | ||
| "prettier": "^2.7.1", | ||
| "tap": "^16.3.0", | ||
| "typescript": "^5.8.2", | ||
| "vitest": "^3.1.3" | ||
| "prettier": "^3.7.4", | ||
| "tap": "^21.5.0", | ||
| "typescript": "^5.9.3", | ||
| "vitest": "^4.0.15" | ||
| }, | ||
@@ -74,2 +77,5 @@ "engines": { | ||
| }, | ||
| "resolutions": { | ||
| "glob": "^13.0.0" | ||
| }, | ||
| "keywords": [ | ||
@@ -76,0 +82,0 @@ "xml", |
+9
-8
@@ -67,11 +67,12 @@ [](https://travis-ci.org/nfarina/xmldoc) | ||
| - `name` - the node name, like "tat" for `<tat>`. XML "namespaces" are ignored by the underlying [sax-js](https://github.com/isaacs/sax-js) parser, so you'll simply get "office:body" for `<office:body>`. | ||
| - `attr` - an object dict containing attribute properties, like `bookNode.attr.title` for `<book title="...">`. | ||
| - `val` - the string "value" of the node, if any, like "world" for `<hello>world</hello>`. | ||
| - `children` - an array of `XmlElement` children of the node. | ||
| - `firstChild`, `lastChild` - pretty much what it sounds like; null if no children | ||
| - `line`, `column`, `position`, `startTagPosition` - information about the element's original position in the XML string. | ||
| | Member name | Default empty value | Description | | ||
| | :----------------------------------------------- | :------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| | `name` | | Node name, like "tat" for `<tat>`. XML "namespaces" are ignored by the underlying [sax-js](https://github.com/isaacs/sax-js) parser: so `<office:body>` becomes `"office:body"`. | | ||
| | `attr` | `{}` | Object dict containing attribute properties. Like `bookNode.attr.title` for `<book title="...">`. | | ||
| | `val` | `""` | String "value" of the node, if any. Like `"world"` for `<hello>world</hello>`. | | ||
| | `children` | `[]` | Array of `XmlElement` children of the node. | | ||
| | `firstChild` | | What it sounds like. `null` if no children. | | ||
| | `lastChild` | | What it sounds like. `null` if no children. | | ||
| | `line`, `column`, `position`, `startTagPosition` | | Information about the element's original position in the XML string. | | ||
| Each member defaults to a sensible "empty" value like `{}` for `attr`, `[]` for `children`, and `""` for `val`. | ||
| ## Methods | ||
@@ -78,0 +79,0 @@ |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
63318
2.67%174
0.58%Updated