xml-twig 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -248,7 +248,7 @@ Here are some examples the get attribute and values:
248
248
  .attribute((key, val) => { return key === 'age' && val > 50 })) => { "age": 59 }
249
249
  ```
250
250
 
251
- #### Twig Methods, acessing XML Elements
251
+ #### Twig Methods, accessing XML Elements
252
252
 
253
253
  `.root()` - **Twig**: The topmost element of the tree
254
254
 
@@ -262,9 +262,9 @@ Here are some examples the get attribute and values:
262
262
 
263
263
  `.previous(condition)` - **Twig**: Return the previous elt (optionally matching condition) of the element. This is the first element which opens before the current one. It is usually either the last descendant of the previous sibling or simply the parent
264
264
 
265
- `.first(condition)` - **Twig**: Returns the first elt (optionally matching condition) element. Usually the `root` element.
265
+ `.first(condition)` - **Twig**: Returns the first (optionally matching condition) element. Usually the `root` element.
266
266
 
267
- `.last(condition)` - **Twig**: Returns the last elt (optionally matching condition) element. Usually this is root element.
267
+ `.last(condition)` - **Twig**: Returns the last (optionally matching condition) element. Usually the last element in the document without children.
268
268
 
269
269
  `.ancestor(condition)` - **Twig[]**: All ancestors (parent, grandparent, etc.) of the current element (optionally matching condition) or an empty array.
270
270
 
@@ -276,7 +276,7 @@ Here are some examples the get attribute and values:
276
276
 
277
277
  `.sibling(condition)` - **Twig[]**: All siblings (optionally matching condition) before and after the current element or an empty array.
278
278
 
279
- `.siblingOrSelf(condition)` - **Twig[]**: All siblings (optionally matching condition) before and after the current element or an empty array.
279
+ `.siblingOrSelf(condition)` - **Twig[]**: All siblings (optionally matching condition) before and after the current element and the current element itself or an empty array.
280
280
 
281
281
  `.followingSibling(condition)` - **Twig[]**: All siblings (optionally matching condition) after the current element or an empty array.
282
282
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "name": "xml-twig",
6
6
  "description": "Node module for processing huge XML documents in tree mode",
7
- "version": "1.0.3",
7
+ "version": "1.0.5",
8
8
  "main": "twig.js",
9
9
  "directories": {
10
10
  "doc": "doc"