plist 2.0.0 → 3.0.1

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/.travis.yml CHANGED
@@ -3,13 +3,10 @@ sudo: false
3
3
  language: node_js
4
4
 
5
5
  node_js:
6
- - '0.10'
7
- - '0.12'
8
- - '1'
9
- - '2'
10
- - '3'
11
- - '4'
12
- - '5'
6
+ - '6'
7
+ - '7'
8
+ - '8'
9
+ - '9'
13
10
 
14
11
  env:
15
12
  global:
@@ -18,25 +15,19 @@ env:
18
15
 
19
16
  matrix:
20
17
  include:
21
- - node_js: '0.10'
18
+ - node_js: '6'
22
19
  env: BROWSER_NAME=chrome BROWSER_VERSION=latest
23
- - node_js: '0.10'
20
+ - node_js: '6'
24
21
  env: BROWSER_NAME=chrome BROWSER_VERSION=29
25
- - node_js: '0.10'
22
+ - node_js: '6'
26
23
  env: BROWSER_NAME=firefox BROWSER_VERSION=latest
27
- - node_js: '0.10'
28
- env: BROWSER_NAME=opera BROWSER_VERSION=latest
29
- - node_js: '0.10'
24
+ - node_js: '6'
30
25
  env: BROWSER_NAME=safari BROWSER_VERSION=latest
31
- - node_js: '0.10'
26
+ - node_js: '6'
32
27
  env: BROWSER_NAME=safari BROWSER_VERSION=7
33
- - node_js: '0.10'
34
- env: BROWSER_NAME=safari BROWSER_VERSION=6
35
- - node_js: '0.10'
36
- env: BROWSER_NAME=safari BROWSER_VERSION=5
37
- - node_js: '0.10'
28
+ - node_js: '6'
38
29
  env: BROWSER_NAME=ie BROWSER_VERSION=11
39
- - node_js: '0.10'
30
+ - node_js: '6'
40
31
  env: BROWSER_NAME=ie BROWSER_VERSION=10
41
- - node_js: '0.10'
32
+ - node_js: '6'
42
33
  env: BROWSER_NAME=ie BROWSER_VERSION=9
package/History.md CHANGED
@@ -1,9 +1,38 @@
1
+ 3.0.0 / 2018-03-18
2
+ ==================
3
+ * [[`cb0d8f1bc6`]](https://github.com/TooTallNate/plist.js/commit/cb0d8f1bc60dee423f8fc2cfcac427452dfaddb0) update Makefile, rebuild dist/ (Mike Reinstein)
4
+ * [[`9dfeffe73f`]](https://github.com/TooTallNate/plist.js/commit/9dfeffe73fdb447ac5a87ee364a1472975f12adf) remove unsupported browser versions from travis (Mike Reinstein)
5
+ * [[`c962bfe1ea`]](https://github.com/TooTallNate/plist.js/commit/c962bfe1ea04dd87966250253d33738bceecab61) update module deps, remove support for node < 6 (Mike Reinstein)
6
+
7
+
8
+ 2.1.0 / 2017-05-04
9
+ ==================
10
+
11
+ * [[`e4f06669bb`]](https://github.com/TooTallNate/plist.js/commit/e4f06669bb51d2e65654df7c39aab52bc3bf4e8a) - update license (extend copyright term) (Mike Reinstein)
12
+ * [[`edc6e41035`]](https://github.com/TooTallNate/plist.js/commit/edc6e4103546b1d7518a577e7c202c305a8abec0) - update module deps (Mike Reinstein)
13
+ * [[`85d11c48ef`](https://github.com/TooTallNate/plist.js/commit/85d11c48eff02312cbdd67f46fd8e74b0d372ca1)] - Harden test-cases and implementation to align with other implementations (Björn Brauer)
14
+ * [[`7619537eaa`]](https://github.com/TooTallNate/plist.js/commit/7619537eaa9e3e5a80829e759c004d2e017a07d2) review feedback: early returns and constants for nodeTypes (Björn Brauer)
15
+
16
+
17
+ 2.0.1 / 2016-08-16
18
+ ==================
19
+
20
+ * [[`de136c8388`](https://github.com/TooTallNate/plist/commit/de136c8388)] - bad npm release… (Nathan Rajlich)
21
+
22
+
1
23
  2.0.0 / 2016-08-16
2
24
  ==================
3
25
 
4
- * [[`d50087ca68`](https://github.com/TooTallNate/plist/commit/d50087ca68)] - remove deprecated functions (Nathan Rajlich)
26
+ * [[`90deef5d43`](https://github.com/TooTallNate/plist/commit/90deef5d43)] - remove deprecated functions (Nathan Rajlich)
27
+ * [[`d475cd8ce9`](https://github.com/TooTallNate/plist/commit/d475cd8ce9)] - Added travis ci support for node 6 (Amila Welihinda)
28
+ * [[`04c8ee7646`](https://github.com/TooTallNate/plist/commit/04c8ee7646)] - update dependencies (Mitchell Hentges)
5
29
  * [[`97c02b3f05`](https://github.com/TooTallNate/plist/commit/97c02b3f05)] - **travis**: add `sudo: false` and test more node versions (Nathan Rajlich)
6
- * [[`4afb7c5079`](https://github.com/TooTallNate/plist/commit/4afb7c5079)] - fix `Cannot read property 'nodeValue' of undefined` exception that is thrown when a `<key></key>` construct appears in plist (Chris Kinsman)
30
+ * [[`54c821ec29`](https://github.com/TooTallNate/plist/commit/54c821ec29)] - #71 - fixed and added test (Andrew Goldis)
31
+ * [[`4afb7c5079`](https://github.com/TooTallNate/plist/commit/4afb7c5079)] - fix `Cannot read property 'nodeValue' of undefined exception` that is thrown when a `<key></key>` construct appears in plist (Chris Kinsman)
32
+ * [[`f360d7d685`](https://github.com/TooTallNate/plist/commit/f360d7d685)] - #66 - fixed empty keys and added tests (Andrew Goldis)
33
+ * [[`421c7f26e9`](https://github.com/TooTallNate/plist/commit/421c7f26e9)] - #66 - fixed empty key (Andrew Goldis)
34
+ * [[`a88aa4dca7`](https://github.com/TooTallNate/plist/commit/a88aa4dca7)] - add verbose examples (mrzmyr)
35
+
7
36
 
8
37
  1.2.0 / 2015-11-10
9
38
  ==================
@@ -17,6 +46,7 @@
17
46
  * build: omit undefined values
18
47
  * travis: add node 4.0 and 4.1 to test matrix
19
48
 
49
+
20
50
  1.1.0 / 2014-08-27
21
51
  ==================
22
52
 
@@ -26,6 +56,7 @@
26
56
  * travis: use new "plistjs" sauce credentials
27
57
  * travis: set up zuul saucelabs automated testing
28
58
 
59
+
29
60
  1.0.1 / 2014-06-25
30
61
  ==================
31
62
 
@@ -36,6 +67,7 @@
36
67
  * README: update examples to use preferred API
37
68
  * package: add "browser" keyword
38
69
 
70
+
39
71
  1.0.0 / 2014-05-20
40
72
  ==================
41
73
 
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2010-2014 Nathan Rajlich <nathan@tootallnate.net>
3
+ Copyright (c) 2010-2017 Nathan Rajlich <nathan@tootallnate.net>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person
6
6
  obtaining a copy of this software and associated documentation
package/Makefile CHANGED
@@ -38,8 +38,7 @@ dist/plist-parse.js: node_modules lib/parse.js dist
38
38
  dist/plist.js: node_modules lib/*.js dist
39
39
  @$(BROWSERIFY) \
40
40
  --standalone plist \
41
- --ignore lib/node.js \
42
- lib/plist.js > $@
41
+ index.js > $@
43
42
 
44
43
  node_modules: package.json
45
44
  @NODE_ENV= $(NPM) install
package/README.md CHANGED
@@ -69,8 +69,34 @@ Parsing a plist from string payload:
69
69
  ``` javascript
70
70
  var plist = require('plist');
71
71
 
72
- var obj = plist.parse('<plist><string>Hello World!</string></plist>');
73
- console.log(obj); // Hello World!
72
+ var xml =
73
+ '<?xml version="1.0" encoding="UTF-8"?>' +
74
+ '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">' +
75
+ '<plist version="1.0">' +
76
+ '<key>metadata</key>' +
77
+ '<dict>' +
78
+ '<key>bundle-identifier</key>' +
79
+ '<string>com.company.app</string>' +
80
+ '<key>bundle-version</key>' +
81
+ '<string>0.1.1</string>' +
82
+ '<key>kind</key>' +
83
+ '<string>software</string>' +
84
+ '<key>title</key>' +
85
+ '<string>AppName</string>' +
86
+ '</dict>' +
87
+ '</plist>';
88
+
89
+ console.log(plist.parse(xml));
90
+
91
+ // [
92
+ // "metadata",
93
+ // {
94
+ // "bundle-identifier": "com.company.app",
95
+ // "bundle-version": "0.1.1",
96
+ // "kind": "software",
97
+ // "title": "AppName"
98
+ // }
99
+ // ]
74
100
  ```
75
101
 
76
102
  ### Building
@@ -81,33 +107,35 @@ that complies with the plist DTD:
81
107
  ``` javascript
82
108
  var plist = require('plist');
83
109
 
84
- console.log(plist.build({ foo: 'bar' }));
110
+ var json = [
111
+ "metadata",
112
+ {
113
+ "bundle-identifier": "com.company.app",
114
+ "bundle-version": "0.1.1",
115
+ "kind": "software",
116
+ "title": "AppName"
117
+ }
118
+ ];
119
+
120
+ console.log(plist.build(json));
121
+
122
+ // <?xml version="1.0" encoding="UTF-8"?>
123
+ // <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
124
+ // <plist version="1.0">
125
+ // <key>metadata</key>
126
+ // <dict>
127
+ // <key>bundle-identifier</key>
128
+ // <string>com.company.app</string>
129
+ // <key>bundle-version</key>
130
+ // <string>0.1.1</string>
131
+ // <key>kind</key>
132
+ // <string>software</string>
133
+ // <key>title</key>
134
+ // <string>AppName</string>
135
+ // </dict>
136
+ // </plist>
85
137
  ```
86
138
 
87
-
88
139
  ## License
89
140
 
90
- (The MIT License)
91
-
92
- Copyright (c) 2010-2014 Nathan Rajlich <nathan@tootallnate.net>
93
-
94
- Permission is hereby granted, free of charge, to any person
95
- obtaining a copy of this software and associated documentation
96
- files (the "Software"), to deal in the Software without
97
- restriction, including without limitation the rights to use,
98
- copy, modify, merge, publish, distribute, sublicense, and/or sell
99
- copies of the Software, and to permit persons to whom the
100
- Software is furnished to do so, subject to the following
101
- conditions:
102
-
103
- The above copyright notice and this permission notice shall be
104
- included in all copies or substantial portions of the Software.
105
-
106
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
107
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
108
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
109
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
110
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
111
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
112
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
113
- OTHER DEALINGS IN THE SOFTWARE.
141
+ [(The MIT License)](LICENSE)