plist 1.1.0 → 2.1.0
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 +12 -1
- package/History.md +42 -5
- package/LICENSE +1 -1
- package/README.md +56 -28
- package/dist/plist-build.js +3082 -11696
- package/dist/plist-parse.js +1144 -717
- package/dist/plist.js +4298 -11231
- package/index.js +13 -0
- package/lib/build.js +4 -3
- package/lib/parse.js +95 -80
- package/package.json +10 -10
- package/lib/node.js +0 -49
- package/lib/plist.js +0 -23
- package/test/build.js +0 -133
- package/test/parse.js +0 -448
package/.travis.yml
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
|
+
sudo: false
|
|
2
|
+
|
|
1
3
|
language: node_js
|
|
4
|
+
|
|
2
5
|
node_js:
|
|
3
6
|
- '0.10'
|
|
4
|
-
- '0.
|
|
7
|
+
- '0.12'
|
|
8
|
+
- '1'
|
|
9
|
+
- '2'
|
|
10
|
+
- '3'
|
|
11
|
+
- '4'
|
|
12
|
+
- '5'
|
|
13
|
+
- '6'
|
|
14
|
+
|
|
5
15
|
env:
|
|
6
16
|
global:
|
|
7
17
|
- secure: xlLmWO7akYQjmDgrv6/b/ZMGILF8FReD+k6A/u8pYRD2JW29hhwvRwIQGcKp9+zmJdn4i5M4D1/qJkCeI3pdhAYBDHvzHOHSEwLJz1ESB2Crv6fa69CtpIufQkWvIxmZoU49tCaLpMBaIroGihJ4DAXdIVOIz6Ur9vXLDhGsE4c=
|
|
8
18
|
- secure: aQ46RdxL10xR5ZJJTMUKdH5k4tdrzgZ87nlwHC+pTr6bfRw3UKYC+6Rm7yQpg9wq0Io9O9dYCP007gQGSWstbjr1+jXNu/ubtNG+q5cpWBQZZZ013VHh9QJTf1MnetsZxbv8Yhrjg590s6vruT0oqesOnB2CizO/BsKxnY37Nos=
|
|
19
|
+
|
|
9
20
|
matrix:
|
|
10
21
|
include:
|
|
11
22
|
- node_js: '0.10'
|
package/History.md
CHANGED
|
@@ -1,12 +1,49 @@
|
|
|
1
|
+
2.1.0 / 2017-05-04
|
|
2
|
+
==================
|
|
3
|
+
|
|
4
|
+
* [[`e4f06669bb`]](https://github.com/TooTallNate/plist.js/commit/e4f06669bb51d2e65654df7c39aab52bc3bf4e8a) - update license (extend copyright term) (Mike Reinstein)
|
|
5
|
+
* [[`edc6e41035`]](https://github.com/TooTallNate/plist.js/commit/edc6e4103546b1d7518a577e7c202c305a8abec0) - update module deps (Mike Reinstein)
|
|
6
|
+
* [[`85d11c48ef`](https://github.com/TooTallNate/plist.js/commit/85d11c48eff02312cbdd67f46fd8e74b0d372ca1)] - Harden test-cases and implementation to align with other implementations (Björn Brauer)
|
|
7
|
+
* [[`7619537eaa`]](https://github.com/TooTallNate/plist.js/commit/7619537eaa9e3e5a80829e759c004d2e017a07d2) review feedback: early returns and constants for nodeTypes (Björn Brauer)
|
|
8
|
+
|
|
9
|
+
2.0.1 / 2016-08-16
|
|
10
|
+
==================
|
|
11
|
+
|
|
12
|
+
* [[`de136c8388`](https://github.com/TooTallNate/plist/commit/de136c8388)] - bad npm release… (Nathan Rajlich)
|
|
13
|
+
|
|
14
|
+
2.0.0 / 2016-08-16
|
|
15
|
+
==================
|
|
16
|
+
|
|
17
|
+
* [[`90deef5d43`](https://github.com/TooTallNate/plist/commit/90deef5d43)] - remove deprecated functions (Nathan Rajlich)
|
|
18
|
+
* [[`d475cd8ce9`](https://github.com/TooTallNate/plist/commit/d475cd8ce9)] - Added travis ci support for node 6 (Amila Welihinda)
|
|
19
|
+
* [[`04c8ee7646`](https://github.com/TooTallNate/plist/commit/04c8ee7646)] - update dependencies (Mitchell Hentges)
|
|
20
|
+
* [[`97c02b3f05`](https://github.com/TooTallNate/plist/commit/97c02b3f05)] - **travis**: add `sudo: false` and test more node versions (Nathan Rajlich)
|
|
21
|
+
* [[`54c821ec29`](https://github.com/TooTallNate/plist/commit/54c821ec29)] - #71 - fixed and added test (Andrew Goldis)
|
|
22
|
+
* [[`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)
|
|
23
|
+
* [[`f360d7d685`](https://github.com/TooTallNate/plist/commit/f360d7d685)] - #66 - fixed empty keys and added tests (Andrew Goldis)
|
|
24
|
+
* [[`421c7f26e9`](https://github.com/TooTallNate/plist/commit/421c7f26e9)] - #66 - fixed empty key (Andrew Goldis)
|
|
25
|
+
* [[`a88aa4dca7`](https://github.com/TooTallNate/plist/commit/a88aa4dca7)] - add verbose examples (mrzmyr)
|
|
26
|
+
|
|
27
|
+
1.2.0 / 2015-11-10
|
|
28
|
+
==================
|
|
29
|
+
|
|
30
|
+
* package: update "browserify" to v12.0.1
|
|
31
|
+
* package: update "zuul" to v3.7.2
|
|
32
|
+
* package: update "xmlbuilder" to v4.0.0
|
|
33
|
+
* package: update "util-deprecate" to v1.0.2
|
|
34
|
+
* package: update "mocha" to v2.3.3
|
|
35
|
+
* package: update "base64-js" to v0.0.8
|
|
36
|
+
* build: omit undefined values
|
|
37
|
+
* travis: add node 4.0 and 4.1 to test matrix
|
|
1
38
|
|
|
2
39
|
1.1.0 / 2014-08-27
|
|
3
40
|
==================
|
|
4
41
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
42
|
+
* package: update "browserify" to v5.10.1
|
|
43
|
+
* package: update "zuul" to v1.10.2
|
|
44
|
+
* README: add "Sauce Test Status" build badge
|
|
45
|
+
* travis: use new "plistjs" sauce credentials
|
|
46
|
+
* travis: set up zuul saucelabs automated testing
|
|
10
47
|
|
|
11
48
|
1.0.1 / 2014-06-25
|
|
12
49
|
==================
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(The MIT License)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2010-
|
|
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/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
|
|
73
|
-
|
|
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
|
-
|
|
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)
|