plist 2.1.0 → 3.0.3

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.
package/lib/parse.js CHANGED
@@ -190,14 +190,14 @@ function parsePlistXML (node) {
190
190
  } else if (node.nodeName === 'data') {
191
191
  res = '';
192
192
  if (isEmptyNode(node)) {
193
- return new Buffer(res, 'base64');
193
+ return Buffer.from(res, 'base64');
194
194
  }
195
195
  for (i=0; i < node.childNodes.length; i++) {
196
196
  if (node.childNodes[i].nodeType === TEXT_NODE) {
197
197
  res += node.childNodes[i].nodeValue.replace(/\s+/g, '');
198
198
  }
199
199
  }
200
- return new Buffer(res, 'base64');
200
+ return Buffer.from(res, 'base64');
201
201
 
202
202
  } else if (node.nodeName === 'date') {
203
203
  invariant(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "plist",
3
3
  "description": "Mac OS X Plist parser/builder for Node.js and browsers",
4
- "version": "2.1.0",
4
+ "version": "3.0.3",
5
5
  "author": "Nathan Rajlich <nathan@tootallnate.net>",
6
6
  "contributors": [
7
7
  "Hans Huebner <hans.huebner@gmail.com>",
@@ -25,17 +25,20 @@
25
25
  ],
26
26
  "main": "index.js",
27
27
  "dependencies": {
28
- "base64-js": "1.2.0",
29
- "xmlbuilder": "8.2.2",
30
- "xmldom": "0.1.x"
28
+ "base64-js": "^1.5.1",
29
+ "xmlbuilder": "^9.0.7",
30
+ "xmldom": "^0.6.0"
31
31
  },
32
32
  "devDependencies": {
33
- "browserify": "^14.3.0",
34
- "mocha": "^3.3.0",
33
+ "browserify": "^16.5.2",
34
+ "mocha": "^5.2.0",
35
35
  "multiline": "^1.0.2",
36
- "zuul": "^3.10.1"
36
+ "zuul": "3.10.1"
37
37
  },
38
38
  "scripts": {
39
39
  "test": "make test"
40
+ },
41
+ "engines": {
42
+ "node": ">=6"
40
43
  }
41
44
  }