fsevents 1.0.12 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fsevents might be problematic. Click here for more details.

Files changed (514) hide show
  1. package/.npmignore +1 -3
  2. package/.travis.yml +6 -5
  3. package/build/.target.mk +49 -0
  4. package/build/Makefile +352 -0
  5. package/build/action_after_build.target.mk +32 -0
  6. package/build/binding.Makefile +6 -0
  7. package/build/fse.target.mk +169 -0
  8. package/build/gyp-mac-tool +612 -0
  9. package/lib/binding/Release/node-v11-darwin-x64/fse.node +0 -0
  10. package/lib/binding/Release/node-v46-darwin-x64/fse.node +0 -0
  11. package/lib/binding/Release/node-v47-darwin-x64/fse.node +0 -0
  12. package/node_modules/abbrev/package.json +82 -0
  13. package/node_modules/{lodash.repeat/LICENSE → ansi-regex/license} +5 -7
  14. package/node_modules/ansi-regex/package.json +20 -2
  15. package/node_modules/{lodash.padstart/LICENSE → ansi-styles/license} +5 -7
  16. package/node_modules/ansi-styles/package.json +21 -4
  17. package/node_modules/aproba/LICENSE +14 -0
  18. package/node_modules/aproba/README.md +59 -0
  19. package/node_modules/aproba/index.js +62 -0
  20. package/node_modules/aproba/package.json +88 -0
  21. package/node_modules/are-we-there-yet/package.json +21 -4
  22. package/node_modules/asn1/package.json +19 -1
  23. package/node_modules/assert-plus/package.json +21 -4
  24. package/node_modules/async/CHANGELOG.md +125 -0
  25. package/node_modules/async/LICENSE +19 -0
  26. package/node_modules/async/package.json +20 -2
  27. package/node_modules/aws-sign2/package.json +20 -2
  28. package/node_modules/aws4/aws4.js +1 -1
  29. package/node_modules/aws4/lru.js +96 -0
  30. package/node_modules/aws4/package.json +31 -16
  31. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → balanced-match}/.npmignore +2 -0
  32. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/README.md +5 -3
  33. package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/index.js +9 -1
  34. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/package.json +35 -13
  35. package/node_modules/bl/README.md +3 -3
  36. package/node_modules/bl/bl.js +54 -38
  37. package/node_modules/bl/node_modules/readable-stream/.npmignore +5 -0
  38. package/node_modules/bl/node_modules/readable-stream/.travis.yml +52 -0
  39. package/node_modules/bl/node_modules/readable-stream/LICENSE +18 -0
  40. package/node_modules/bl/node_modules/readable-stream/README.md +36 -0
  41. package/node_modules/bl/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  42. package/node_modules/bl/node_modules/readable-stream/duplex.js +1 -0
  43. package/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +75 -0
  44. package/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +26 -0
  45. package/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +880 -0
  46. package/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +180 -0
  47. package/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +516 -0
  48. package/node_modules/bl/node_modules/readable-stream/package.json +105 -0
  49. package/node_modules/bl/node_modules/readable-stream/passthrough.js +1 -0
  50. package/node_modules/bl/node_modules/readable-stream/readable.js +12 -0
  51. package/node_modules/bl/node_modules/readable-stream/transform.js +1 -0
  52. package/node_modules/bl/node_modules/readable-stream/writable.js +1 -0
  53. package/node_modules/bl/package.json +39 -15
  54. package/node_modules/bl/test/test.js +71 -2
  55. package/node_modules/block-stream/package.json +37 -12
  56. package/node_modules/boom/package.json +20 -2
  57. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/package.json +34 -16
  58. package/node_modules/buffer-shims/index.js +108 -0
  59. package/node_modules/buffer-shims/license.md +19 -0
  60. package/node_modules/buffer-shims/package.json +77 -0
  61. package/node_modules/buffer-shims/readme.md +21 -0
  62. package/node_modules/caseless/package.json +20 -2
  63. package/node_modules/{lodash.pad/LICENSE → chalk/license} +5 -7
  64. package/node_modules/chalk/package.json +21 -4
  65. package/node_modules/code-point-at/index.js +33 -0
  66. package/node_modules/{lodash.padend/LICENSE → code-point-at/license} +5 -7
  67. package/node_modules/code-point-at/package.json +96 -0
  68. package/node_modules/code-point-at/readme.md +34 -0
  69. package/node_modules/combined-stream/package.json +20 -2
  70. package/node_modules/commander/History.md +261 -0
  71. package/node_modules/commander/LICENSE +22 -0
  72. package/node_modules/commander/package.json +20 -2
  73. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/package.json +21 -3
  74. package/node_modules/console-control-strings/LICENSE +13 -0
  75. package/node_modules/console-control-strings/README.md +145 -0
  76. package/node_modules/console-control-strings/README.md~ +140 -0
  77. package/node_modules/console-control-strings/index.js +125 -0
  78. package/node_modules/console-control-strings/package.json +88 -0
  79. package/node_modules/core-util-is/package.json +21 -2
  80. package/node_modules/cryptiles/package.json +20 -2
  81. package/node_modules/dashdash/lib/dashdash.js +34 -1
  82. package/node_modules/dashdash/node_modules/assert-plus/package.json +21 -4
  83. package/node_modules/dashdash/package.json +29 -12
  84. package/node_modules/debug/package.json +20 -2
  85. package/node_modules/deep-extend/CHANGELOG.md +21 -0
  86. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → deep-extend}/LICENSE +3 -1
  87. package/node_modules/deep-extend/package.json +21 -4
  88. package/node_modules/delayed-stream/package.json +20 -2
  89. package/node_modules/delegates/package.json +21 -4
  90. package/node_modules/ecc-jsbn/package.json +20 -2
  91. package/node_modules/escape-string-regexp/license +21 -0
  92. package/node_modules/escape-string-regexp/package.json +21 -4
  93. package/node_modules/extend/package.json +20 -2
  94. package/node_modules/extsprintf/package.json +20 -3
  95. package/node_modules/forever-agent/package.json +20 -2
  96. package/node_modules/form-data/package.json +21 -4
  97. package/node_modules/fs.realpath/LICENSE +43 -0
  98. package/node_modules/fs.realpath/README.md +33 -0
  99. package/node_modules/fs.realpath/index.js +66 -0
  100. package/node_modules/fs.realpath/old.js +303 -0
  101. package/node_modules/fs.realpath/package.json +86 -0
  102. package/node_modules/fstream/.travis.yml +4 -4
  103. package/node_modules/fstream/lib/collect.js +2 -0
  104. package/node_modules/fstream/package.json +37 -15
  105. package/node_modules/fstream-ignore/package.json +45 -17
  106. package/node_modules/gauge/CHANGELOG.md +131 -0
  107. package/node_modules/gauge/CHANGELOG.md~ +123 -0
  108. package/node_modules/gauge/README.md +317 -88
  109. package/node_modules/gauge/README.md~ +393 -0
  110. package/node_modules/gauge/base-theme.js +14 -0
  111. package/node_modules/gauge/error.js +24 -0
  112. package/node_modules/gauge/has-color.js +12 -0
  113. package/node_modules/gauge/index.js +226 -0
  114. package/node_modules/gauge/package.json +67 -21
  115. package/node_modules/gauge/plumbing.js +47 -0
  116. package/node_modules/gauge/process.js +3 -0
  117. package/node_modules/gauge/progress-bar.js +29 -219
  118. package/node_modules/gauge/render-template.js +181 -0
  119. package/node_modules/gauge/set-immediate.js +7 -0
  120. package/node_modules/gauge/set-interval.js +3 -0
  121. package/node_modules/gauge/spin.js +5 -0
  122. package/node_modules/gauge/template-item.js +73 -0
  123. package/node_modules/gauge/theme-set.js +115 -0
  124. package/node_modules/gauge/themes.js +54 -0
  125. package/node_modules/gauge/wide-truncate.js +25 -0
  126. package/node_modules/generate-function/package.json +20 -2
  127. package/node_modules/generate-object-property/package.json +20 -2
  128. package/node_modules/getpass/.npmignore +8 -0
  129. package/node_modules/getpass/.travis.yml +9 -0
  130. package/node_modules/getpass/LICENSE +18 -0
  131. package/node_modules/getpass/README.md +32 -0
  132. package/node_modules/getpass/lib/index.js +123 -0
  133. package/node_modules/getpass/node_modules/assert-plus/AUTHORS +6 -0
  134. package/node_modules/getpass/node_modules/assert-plus/CHANGES.md +14 -0
  135. package/node_modules/getpass/node_modules/assert-plus/README.md +162 -0
  136. package/node_modules/getpass/node_modules/assert-plus/assert.js +211 -0
  137. package/node_modules/getpass/node_modules/assert-plus/package.json +107 -0
  138. package/node_modules/getpass/package.json +82 -0
  139. package/node_modules/glob/changelog.md +67 -0
  140. package/node_modules/{rimraf/node_modules/glob → glob}/glob.js +2 -1
  141. package/node_modules/glob/package.json +103 -0
  142. package/node_modules/{rimraf/node_modules/glob → glob}/sync.js +2 -1
  143. package/node_modules/graceful-fs/LICENSE +15 -0
  144. package/node_modules/graceful-fs/README.md +82 -2
  145. package/node_modules/graceful-fs/package.json +30 -12
  146. package/node_modules/graceful-readlink/package.json +20 -2
  147. package/node_modules/har-validator/LICENSE +13 -0
  148. package/node_modules/har-validator/package.json +20 -2
  149. package/node_modules/has-ansi/license +21 -0
  150. package/node_modules/has-ansi/package.json +20 -2
  151. package/node_modules/has-color/index.js +32 -0
  152. package/node_modules/has-color/package.json +97 -0
  153. package/node_modules/has-color/readme.md +30 -0
  154. package/node_modules/has-unicode/index.js +3 -8
  155. package/node_modules/has-unicode/package.json +36 -12
  156. package/node_modules/hawk/package.json +20 -2
  157. package/node_modules/hoek/package.json +20 -2
  158. package/node_modules/http-signature/package.json +20 -2
  159. package/node_modules/inflight/package.json +97 -0
  160. package/node_modules/inherits/package.json +16 -9
  161. package/node_modules/ini/package.json +21 -4
  162. package/node_modules/is-fullwidth-code-point/index.js +46 -0
  163. package/node_modules/is-fullwidth-code-point/license +21 -0
  164. package/node_modules/is-fullwidth-code-point/package.json +100 -0
  165. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  166. package/node_modules/is-my-json-valid/package.json +21 -4
  167. package/node_modules/is-property/package.json +20 -2
  168. package/node_modules/is-typedarray/package.json +20 -2
  169. package/node_modules/isarray/package.json +21 -2
  170. package/node_modules/isstream/package.json +20 -2
  171. package/node_modules/jodid25519/package.json +19 -1
  172. package/node_modules/jsbn/package.json +19 -1
  173. package/node_modules/json-schema/package.json +20 -2
  174. package/node_modules/json-stringify-safe/package.json +20 -2
  175. package/node_modules/jsonpointer/package.json +19 -1
  176. package/node_modules/jsprim/CHANGES.md +5 -0
  177. package/node_modules/jsprim/README.md +13 -4
  178. package/node_modules/jsprim/lib/jsprim.js +12 -2
  179. package/node_modules/jsprim/package.json +33 -11
  180. package/node_modules/mime-db/HISTORY.md +21 -0
  181. package/node_modules/mime-db/db.json +53 -1
  182. package/node_modules/mime-db/package.json +36 -19
  183. package/node_modules/mime-types/HISTORY.md +6 -0
  184. package/node_modules/mime-types/package.json +33 -16
  185. package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/README.md +2 -9
  186. package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/minimatch.js +15 -3
  187. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch → minimatch}/package.json +37 -14
  188. package/node_modules/mkdirp/package.json +10 -8
  189. package/node_modules/ms/History.md +66 -0
  190. package/node_modules/ms/package.json +19 -1
  191. package/node_modules/node-pre-gyp/CHANGELOG.md +21 -0
  192. package/node_modules/node-pre-gyp/appveyor.yml +2 -2
  193. package/node_modules/node-pre-gyp/lib/install.js +12 -2
  194. package/node_modules/node-pre-gyp/lib/testbinary.js +9 -9
  195. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +84 -0
  196. package/node_modules/node-pre-gyp/package.json +21 -31
  197. package/node_modules/node-uuid/package.json +20 -2
  198. package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/package.json +21 -3
  199. package/node_modules/npmlog/CHANGELOG.md +36 -0
  200. package/node_modules/npmlog/CHANGELOG.md~ +31 -0
  201. package/node_modules/npmlog/README.md +16 -1
  202. package/node_modules/npmlog/log.js +97 -50
  203. package/node_modules/npmlog/package.json +43 -17
  204. package/node_modules/number-is-nan/index.js +4 -0
  205. package/node_modules/number-is-nan/license +21 -0
  206. package/node_modules/number-is-nan/package.json +94 -0
  207. package/node_modules/number-is-nan/readme.md +30 -0
  208. package/node_modules/oauth-sign/package.json +36 -12
  209. package/node_modules/object-assign/index.js +83 -0
  210. package/node_modules/object-assign/license +21 -0
  211. package/node_modules/object-assign/package.json +106 -0
  212. package/node_modules/object-assign/readme.md +56 -0
  213. package/node_modules/once/package.json +22 -2
  214. package/node_modules/path-is-absolute/license +21 -0
  215. package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/package.json +22 -4
  216. package/node_modules/pinkie/license +21 -0
  217. package/node_modules/pinkie/package.json +21 -4
  218. package/node_modules/pinkie-promise/index.js +1 -1
  219. package/node_modules/pinkie-promise/license +21 -0
  220. package/node_modules/pinkie-promise/package.json +32 -10
  221. package/node_modules/process-nextick-args/index.js +31 -8
  222. package/node_modules/process-nextick-args/package.json +33 -10
  223. package/node_modules/qs/.eslintrc +5 -3
  224. package/node_modules/qs/.jscs.json +176 -0
  225. package/node_modules/qs/CHANGELOG.md +10 -0
  226. package/node_modules/qs/dist/qs.js +75 -63
  227. package/node_modules/qs/lib/parse.js +32 -29
  228. package/node_modules/qs/lib/stringify.js +37 -30
  229. package/node_modules/qs/lib/utils.js +6 -4
  230. package/node_modules/qs/package.json +41 -18
  231. package/node_modules/qs/test/parse.js +30 -0
  232. package/node_modules/qs/test/stringify.js +70 -0
  233. package/node_modules/rc/node_modules/minimist/package.json +20 -2
  234. package/node_modules/rc/package.json +21 -4
  235. package/node_modules/readable-stream/.npmignore +4 -1
  236. package/node_modules/readable-stream/.travis.yml +2 -0
  237. package/node_modules/readable-stream/README.md +2 -2
  238. package/node_modules/readable-stream/doc/stream.md +1772 -0
  239. package/node_modules/readable-stream/lib/_stream_readable.js +33 -20
  240. package/node_modules/readable-stream/lib/_stream_transform.js +3 -3
  241. package/node_modules/readable-stream/lib/_stream_writable.js +25 -15
  242. package/node_modules/readable-stream/package.json +44 -15
  243. package/node_modules/readable-stream/readable.js +4 -0
  244. package/node_modules/request/.eslintrc +1 -1
  245. package/node_modules/request/.travis.yml +9 -3
  246. package/node_modules/request/CHANGELOG.md +46 -8
  247. package/node_modules/request/CONTRIBUTING.md +41 -4
  248. package/node_modules/request/README.md +9 -6
  249. package/node_modules/request/codecov.yml +2 -0
  250. package/node_modules/request/index.js +6 -5
  251. package/node_modules/request/lib/helpers.js +3 -3
  252. package/node_modules/request/package.json +52 -30
  253. package/node_modules/request/request.js +58 -43
  254. package/node_modules/rimraf/package.json +33 -16
  255. package/node_modules/rimraf/rimraf.js +10 -2
  256. package/node_modules/semver/README.md +27 -8
  257. package/node_modules/semver/package.json +38 -12
  258. package/node_modules/semver/range.bnf +1 -1
  259. package/node_modules/semver/semver.js +7 -1
  260. package/node_modules/set-blocking/CHANGELOG.md +26 -0
  261. package/node_modules/set-blocking/LICENSE.txt +14 -0
  262. package/node_modules/set-blocking/README.md +31 -0
  263. package/node_modules/set-blocking/index.js +7 -0
  264. package/node_modules/set-blocking/package.json +98 -0
  265. package/node_modules/signal-exit/CHANGELOG.md +17 -0
  266. package/node_modules/signal-exit/LICENSE.txt +14 -0
  267. package/node_modules/signal-exit/README.md +40 -0
  268. package/node_modules/signal-exit/index.js +148 -0
  269. package/node_modules/signal-exit/package.json +98 -0
  270. package/node_modules/signal-exit/signals.js +52 -0
  271. package/node_modules/sntp/package.json +20 -2
  272. package/node_modules/sshpk/.travis.yml +3 -3
  273. package/node_modules/sshpk/README.md +26 -7
  274. package/node_modules/sshpk/bin/sshpk-conv +14 -2
  275. package/node_modules/sshpk/bin/sshpk-sign +16 -1
  276. package/node_modules/sshpk/lib/errors.js +14 -1
  277. package/node_modules/sshpk/lib/formats/auto.js +8 -8
  278. package/node_modules/sshpk/lib/formats/pem.js +39 -5
  279. package/node_modules/sshpk/lib/formats/pkcs1.js +4 -4
  280. package/node_modules/sshpk/lib/formats/pkcs8.js +4 -4
  281. package/node_modules/sshpk/lib/formats/rfc4253.js +2 -2
  282. package/node_modules/sshpk/lib/formats/ssh-private.js +3 -3
  283. package/node_modules/sshpk/lib/formats/ssh.js +2 -2
  284. package/node_modules/sshpk/lib/index.js +2 -1
  285. package/node_modules/sshpk/lib/key.js +20 -17
  286. package/node_modules/sshpk/lib/private-key.js +19 -12
  287. package/node_modules/sshpk/lib/utils.js +40 -1
  288. package/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
  289. package/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +14 -0
  290. package/node_modules/sshpk/node_modules/assert-plus/README.md +162 -0
  291. package/node_modules/sshpk/node_modules/assert-plus/assert.js +211 -0
  292. package/node_modules/sshpk/node_modules/assert-plus/package.json +107 -0
  293. package/node_modules/sshpk/package.json +48 -30
  294. package/node_modules/string-width/index.js +32 -0
  295. package/node_modules/string-width/license +21 -0
  296. package/node_modules/string-width/package.json +111 -0
  297. package/node_modules/string-width/readme.md +41 -0
  298. package/node_modules/string_decoder/package.json +21 -2
  299. package/node_modules/stringstream/package.json +20 -2
  300. package/node_modules/strip-ansi/license +21 -0
  301. package/node_modules/strip-ansi/package.json +24 -5
  302. package/node_modules/strip-json-comments/license +21 -0
  303. package/node_modules/strip-json-comments/package.json +20 -2
  304. package/node_modules/supports-color/license +21 -0
  305. package/node_modules/supports-color/package.json +20 -2
  306. package/node_modules/tar/package.json +20 -2
  307. package/node_modules/tar-pack/package.json +34 -17
  308. package/node_modules/tough-cookie/LICENSE +27 -0
  309. package/node_modules/tough-cookie/package.json +21 -4
  310. package/node_modules/tunnel-agent/package.json +35 -10
  311. package/node_modules/tweetnacl/CHANGELOG.md +0 -53
  312. package/node_modules/tweetnacl/README.md +42 -24
  313. package/node_modules/tweetnacl/nacl-fast.js +52 -22
  314. package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
  315. package/node_modules/tweetnacl/nacl.js +51 -21
  316. package/node_modules/tweetnacl/nacl.min.js +1 -1
  317. package/node_modules/tweetnacl/package.json +56 -30
  318. package/node_modules/uid-number/package.json +21 -4
  319. package/node_modules/util-deprecate/package.json +21 -2
  320. package/node_modules/verror/package.json +20 -3
  321. package/node_modules/wide-align/.npmignore +5 -0
  322. package/node_modules/wide-align/LICENSE +14 -0
  323. package/node_modules/wide-align/README.md +47 -0
  324. package/node_modules/wide-align/align.js +65 -0
  325. package/node_modules/wide-align/package.json +85 -0
  326. package/node_modules/wide-align/test/align.js +37 -0
  327. package/node_modules/wrappy/package.json +44 -14
  328. package/node_modules/xtend/package.json +20 -2
  329. package/package.json +2 -2
  330. package/node_modules/ansi/.jshintrc +0 -4
  331. package/node_modules/ansi/History.md +0 -23
  332. package/node_modules/ansi/LICENSE +0 -24
  333. package/node_modules/ansi/README.md +0 -98
  334. package/node_modules/ansi/examples/beep/index.js +0 -16
  335. package/node_modules/ansi/examples/clear/index.js +0 -15
  336. package/node_modules/ansi/examples/cursorPosition.js +0 -32
  337. package/node_modules/ansi/examples/progress/index.js +0 -87
  338. package/node_modules/ansi/lib/ansi.js +0 -405
  339. package/node_modules/ansi/lib/newlines.js +0 -71
  340. package/node_modules/ansi/package.json +0 -69
  341. package/node_modules/aws4/node_modules/lru-cache/README.md +0 -142
  342. package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +0 -469
  343. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/README.md +0 -60
  344. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/map.js +0 -9
  345. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/package.json +0 -60
  346. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/pseudomap.js +0 -113
  347. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/test/basic.js +0 -86
  348. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.npmignore +0 -4
  349. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.travis.yml +0 -7
  350. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/CONTRIBUTING.md +0 -4
  351. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/README.md +0 -204
  352. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/package.json +0 -60
  353. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/test/basic.js +0 -188
  354. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/yallist.js +0 -360
  355. package/node_modules/aws4/node_modules/lru-cache/package.json +0 -78
  356. package/node_modules/block-stream/bench/block-stream-pause.js +0 -70
  357. package/node_modules/block-stream/bench/block-stream.js +0 -68
  358. package/node_modules/block-stream/bench/dropper-pause.js +0 -70
  359. package/node_modules/block-stream/bench/dropper.js +0 -68
  360. package/node_modules/block-stream/test/basic.js +0 -27
  361. package/node_modules/block-stream/test/nopad-thorough.js +0 -68
  362. package/node_modules/block-stream/test/nopad.js +0 -57
  363. package/node_modules/block-stream/test/pause-resume.js +0 -73
  364. package/node_modules/block-stream/test/thorough.js +0 -68
  365. package/node_modules/block-stream/test/two-stream.js +0 -59
  366. package/node_modules/fstream-ignore/.npmignore +0 -1
  367. package/node_modules/fstream-ignore/example/basic.js +0 -13
  368. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -3
  369. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
  370. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
  371. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -3
  372. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
  373. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -89
  374. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
  375. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -80
  376. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
  377. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -91
  378. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -86
  379. package/node_modules/fstream-ignore/node_modules/minimatch/package.json +0 -67
  380. package/node_modules/fstream-ignore/test/.ignore +0 -2
  381. package/node_modules/fstream-ignore/test/.npmignore +0 -1
  382. package/node_modules/fstream-ignore/test/00-setup.js +0 -71
  383. package/node_modules/fstream-ignore/test/basic.js +0 -28
  384. package/node_modules/fstream-ignore/test/common.js +0 -40
  385. package/node_modules/fstream-ignore/test/ignore-most.js +0 -41
  386. package/node_modules/fstream-ignore/test/nested-ignores.js +0 -51
  387. package/node_modules/fstream-ignore/test/read-file-order.js +0 -81
  388. package/node_modules/fstream-ignore/test/unignore-child.js +0 -38
  389. package/node_modules/fstream-ignore/test/zz-cleanup.js +0 -10
  390. package/node_modules/gauge/.npmignore +0 -32
  391. package/node_modules/gauge/example.png +0 -0
  392. package/node_modules/gauge/test/progress-bar.js +0 -176
  393. package/node_modules/has-unicode/.npmignore +0 -32
  394. package/node_modules/has-unicode/test/index.js +0 -26
  395. package/node_modules/lodash.pad/README.md +0 -18
  396. package/node_modules/lodash.pad/index.js +0 -296
  397. package/node_modules/lodash.pad/package.json +0 -91
  398. package/node_modules/lodash.padend/README.md +0 -18
  399. package/node_modules/lodash.padend/index.js +0 -285
  400. package/node_modules/lodash.padend/package.json +0 -91
  401. package/node_modules/lodash.padstart/README.md +0 -18
  402. package/node_modules/lodash.padstart/index.js +0 -285
  403. package/node_modules/lodash.padstart/package.json +0 -91
  404. package/node_modules/lodash.repeat/README.md +0 -18
  405. package/node_modules/lodash.repeat/index.js +0 -215
  406. package/node_modules/lodash.repeat/package.json +0 -92
  407. package/node_modules/lodash.tostring/LICENSE +0 -23
  408. package/node_modules/lodash.tostring/README.md +0 -18
  409. package/node_modules/lodash.tostring/index.js +0 -164
  410. package/node_modules/lodash.tostring/package.json +0 -91
  411. package/node_modules/node-pre-gyp/README.md +0 -570
  412. package/node_modules/node-pre-gyp/node_modules/nopt/.npmignore +0 -1
  413. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.npmignore +0 -4
  414. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.travis.yml +0 -5
  415. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md +0 -3
  416. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/package.json +0 -56
  417. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/test.js +0 -47
  418. package/node_modules/npmlog/.nyc_output/64996.json +0 -1
  419. package/node_modules/npmlog/.nyc_output/64998.json +0 -1
  420. package/node_modules/npmlog/.nyc_output/65000.json +0 -1
  421. package/node_modules/npmlog/.travis.yml +0 -14
  422. package/node_modules/npmlog/example.js +0 -39
  423. package/node_modules/npmlog/test/basic.js +0 -235
  424. package/node_modules/npmlog/test/progress.js +0 -131
  425. package/node_modules/oauth-sign/test.js +0 -89
  426. package/node_modules/qs/.npmignore +0 -18
  427. package/node_modules/qs/.travis.yml +0 -69
  428. package/node_modules/qs/README.md +0 -335
  429. package/node_modules/qs/bower.json +0 -22
  430. package/node_modules/qs/component.json +0 -15
  431. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +0 -17
  432. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +0 -36
  433. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +0 -59
  434. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +0 -51
  435. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +0 -33
  436. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +0 -68
  437. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js +0 -97
  438. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +0 -16
  439. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +0 -42
  440. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +0 -1
  441. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
  442. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +0 -59
  443. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +0 -25
  444. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -216
  445. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -912
  446. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -122
  447. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
  448. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -191
  449. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
  450. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -3
  451. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md +0 -21
  452. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
  453. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
  454. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -50
  455. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
  456. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -4
  457. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -62
  458. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -6
  459. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -13
  460. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -39
  461. package/node_modules/rimraf/node_modules/glob/node_modules/once/README.md +0 -51
  462. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -36
  463. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +0 -59
  464. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -51
  465. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -33
  466. package/node_modules/rimraf/node_modules/glob/node_modules/once/once.js +0 -21
  467. package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +0 -71
  468. package/node_modules/rimraf/node_modules/glob/package.json +0 -85
  469. package/node_modules/semver/.npmignore +0 -4
  470. package/node_modules/semver/.travis.yml +0 -5
  471. package/node_modules/semver/test/big-numbers.js +0 -31
  472. package/node_modules/semver/test/clean.js +0 -29
  473. package/node_modules/semver/test/gtr.js +0 -173
  474. package/node_modules/semver/test/index.js +0 -698
  475. package/node_modules/semver/test/ltr.js +0 -181
  476. package/node_modules/semver/test/major-minor-patch.js +0 -72
  477. package/node_modules/tunnel-agent/.jshintrc +0 -5
  478. package/node_modules/tweetnacl/COPYING.txt +0 -9
  479. package/node_modules/wrappy/test/basic.js +0 -51
  480. package/test/fsevents.js +0 -27
  481. package/test/function.js +0 -93
  482. /package/node_modules/{aws4/node_modules/lru-cache/node_modules/pseudomap → abbrev}/LICENSE +0 -0
  483. /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → abbrev}/README.md +0 -0
  484. /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → abbrev}/abbrev.js +0 -0
  485. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/LICENSE.md +0 -0
  486. /package/node_modules/{readable-stream → bl/node_modules/readable-stream}/.zuul.yml +0 -0
  487. /package/node_modules/{readable-stream → bl/node_modules/readable-stream}/doc/stream.markdown +0 -0
  488. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/README.md +0 -0
  489. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/index.js +0 -0
  490. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/.travis.yml +0 -0
  491. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/LICENSE +0 -0
  492. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/README.markdown +0 -0
  493. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/example/map.js +0 -0
  494. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/index.js +0 -0
  495. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/test/map.js +0 -0
  496. /package/node_modules/{aws4/node_modules/lru-cache/node_modules/yallist → glob}/LICENSE +0 -0
  497. /package/node_modules/{rimraf/node_modules/glob → glob}/README.md +0 -0
  498. /package/node_modules/{rimraf/node_modules/glob → glob}/common.js +0 -0
  499. /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/LICENSE +0 -0
  500. /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/README.md +0 -0
  501. /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/inflight.js +0 -0
  502. /package/node_modules/{node-pre-gyp/node_modules/nopt → ini}/LICENSE +0 -0
  503. /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → minimatch}/LICENSE +0 -0
  504. /package/node_modules/{ansi → nopt}/.npmignore +0 -0
  505. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/.travis.yml +0 -0
  506. /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → nopt}/LICENSE +0 -0
  507. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/README.md +0 -0
  508. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/bin/nopt.js +0 -0
  509. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/examples/my-program.js +0 -0
  510. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/lib/nopt.js +0 -0
  511. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/test/basic.js +0 -0
  512. /package/node_modules/{rimraf/node_modules/glob/node_modules/once/node_modules/wrappy → once}/LICENSE +0 -0
  513. /package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/index.js +0 -0
  514. /package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/readme.md +0 -0
@@ -0,0 +1,612 @@
1
+ #!/usr/bin/env python
2
+ # Generated by gyp. Do not edit.
3
+ # Copyright (c) 2012 Google Inc. All rights reserved.
4
+ # Use of this source code is governed by a BSD-style license that can be
5
+ # found in the LICENSE file.
6
+
7
+ """Utility functions to perform Xcode-style build steps.
8
+
9
+ These functions are executed via gyp-mac-tool when using the Makefile generator.
10
+ """
11
+
12
+ import fcntl
13
+ import fnmatch
14
+ import glob
15
+ import json
16
+ import os
17
+ import plistlib
18
+ import re
19
+ import shutil
20
+ import string
21
+ import subprocess
22
+ import sys
23
+ import tempfile
24
+
25
+
26
+ def main(args):
27
+ executor = MacTool()
28
+ exit_code = executor.Dispatch(args)
29
+ if exit_code is not None:
30
+ sys.exit(exit_code)
31
+
32
+
33
+ class MacTool(object):
34
+ """This class performs all the Mac tooling steps. The methods can either be
35
+ executed directly, or dispatched from an argument list."""
36
+
37
+ def Dispatch(self, args):
38
+ """Dispatches a string command to a method."""
39
+ if len(args) < 1:
40
+ raise Exception("Not enough arguments")
41
+
42
+ method = "Exec%s" % self._CommandifyName(args[0])
43
+ return getattr(self, method)(*args[1:])
44
+
45
+ def _CommandifyName(self, name_string):
46
+ """Transforms a tool name like copy-info-plist to CopyInfoPlist"""
47
+ return name_string.title().replace('-', '')
48
+
49
+ def ExecCopyBundleResource(self, source, dest, convert_to_binary):
50
+ """Copies a resource file to the bundle/Resources directory, performing any
51
+ necessary compilation on each resource."""
52
+ extension = os.path.splitext(source)[1].lower()
53
+ if os.path.isdir(source):
54
+ # Copy tree.
55
+ # TODO(thakis): This copies file attributes like mtime, while the
56
+ # single-file branch below doesn't. This should probably be changed to
57
+ # be consistent with the single-file branch.
58
+ if os.path.exists(dest):
59
+ shutil.rmtree(dest)
60
+ shutil.copytree(source, dest)
61
+ elif extension == '.xib':
62
+ return self._CopyXIBFile(source, dest)
63
+ elif extension == '.storyboard':
64
+ return self._CopyXIBFile(source, dest)
65
+ elif extension == '.strings':
66
+ self._CopyStringsFile(source, dest, convert_to_binary)
67
+ else:
68
+ shutil.copy(source, dest)
69
+
70
+ def _CopyXIBFile(self, source, dest):
71
+ """Compiles a XIB file with ibtool into a binary plist in the bundle."""
72
+
73
+ # ibtool sometimes crashes with relative paths. See crbug.com/314728.
74
+ base = os.path.dirname(os.path.realpath(__file__))
75
+ if os.path.relpath(source):
76
+ source = os.path.join(base, source)
77
+ if os.path.relpath(dest):
78
+ dest = os.path.join(base, dest)
79
+
80
+ args = ['xcrun', 'ibtool', '--errors', '--warnings', '--notices',
81
+ '--output-format', 'human-readable-text', '--compile', dest, source]
82
+ ibtool_section_re = re.compile(r'/\*.*\*/')
83
+ ibtool_re = re.compile(r'.*note:.*is clipping its content')
84
+ ibtoolout = subprocess.Popen(args, stdout=subprocess.PIPE)
85
+ current_section_header = None
86
+ for line in ibtoolout.stdout:
87
+ if ibtool_section_re.match(line):
88
+ current_section_header = line
89
+ elif not ibtool_re.match(line):
90
+ if current_section_header:
91
+ sys.stdout.write(current_section_header)
92
+ current_section_header = None
93
+ sys.stdout.write(line)
94
+ return ibtoolout.returncode
95
+
96
+ def _ConvertToBinary(self, dest):
97
+ subprocess.check_call([
98
+ 'xcrun', 'plutil', '-convert', 'binary1', '-o', dest, dest])
99
+
100
+ def _CopyStringsFile(self, source, dest, convert_to_binary):
101
+ """Copies a .strings file using iconv to reconvert the input into UTF-16."""
102
+ input_code = self._DetectInputEncoding(source) or "UTF-8"
103
+
104
+ # Xcode's CpyCopyStringsFile / builtin-copyStrings seems to call
105
+ # CFPropertyListCreateFromXMLData() behind the scenes; at least it prints
106
+ # CFPropertyListCreateFromXMLData(): Old-style plist parser: missing
107
+ # semicolon in dictionary.
108
+ # on invalid files. Do the same kind of validation.
109
+ import CoreFoundation
110
+ s = open(source, 'rb').read()
111
+ d = CoreFoundation.CFDataCreate(None, s, len(s))
112
+ _, error = CoreFoundation.CFPropertyListCreateFromXMLData(None, d, 0, None)
113
+ if error:
114
+ return
115
+
116
+ fp = open(dest, 'wb')
117
+ fp.write(s.decode(input_code).encode('UTF-16'))
118
+ fp.close()
119
+
120
+ if convert_to_binary == 'True':
121
+ self._ConvertToBinary(dest)
122
+
123
+ def _DetectInputEncoding(self, file_name):
124
+ """Reads the first few bytes from file_name and tries to guess the text
125
+ encoding. Returns None as a guess if it can't detect it."""
126
+ fp = open(file_name, 'rb')
127
+ try:
128
+ header = fp.read(3)
129
+ except e:
130
+ fp.close()
131
+ return None
132
+ fp.close()
133
+ if header.startswith("\xFE\xFF"):
134
+ return "UTF-16"
135
+ elif header.startswith("\xFF\xFE"):
136
+ return "UTF-16"
137
+ elif header.startswith("\xEF\xBB\xBF"):
138
+ return "UTF-8"
139
+ else:
140
+ return None
141
+
142
+ def ExecCopyInfoPlist(self, source, dest, convert_to_binary, *keys):
143
+ """Copies the |source| Info.plist to the destination directory |dest|."""
144
+ # Read the source Info.plist into memory.
145
+ fd = open(source, 'r')
146
+ lines = fd.read()
147
+ fd.close()
148
+
149
+ # Insert synthesized key/value pairs (e.g. BuildMachineOSBuild).
150
+ plist = plistlib.readPlistFromString(lines)
151
+ if keys:
152
+ plist = dict(plist.items() + json.loads(keys[0]).items())
153
+ lines = plistlib.writePlistToString(plist)
154
+
155
+ # Go through all the environment variables and replace them as variables in
156
+ # the file.
157
+ IDENT_RE = re.compile(r'[/\s]')
158
+ for key in os.environ:
159
+ if key.startswith('_'):
160
+ continue
161
+ evar = '${%s}' % key
162
+ evalue = os.environ[key]
163
+ lines = string.replace(lines, evar, evalue)
164
+
165
+ # Xcode supports various suffices on environment variables, which are
166
+ # all undocumented. :rfc1034identifier is used in the standard project
167
+ # template these days, and :identifier was used earlier. They are used to
168
+ # convert non-url characters into things that look like valid urls --
169
+ # except that the replacement character for :identifier, '_' isn't valid
170
+ # in a URL either -- oops, hence :rfc1034identifier was born.
171
+ evar = '${%s:identifier}' % key
172
+ evalue = IDENT_RE.sub('_', os.environ[key])
173
+ lines = string.replace(lines, evar, evalue)
174
+
175
+ evar = '${%s:rfc1034identifier}' % key
176
+ evalue = IDENT_RE.sub('-', os.environ[key])
177
+ lines = string.replace(lines, evar, evalue)
178
+
179
+ # Remove any keys with values that haven't been replaced.
180
+ lines = lines.split('\n')
181
+ for i in range(len(lines)):
182
+ if lines[i].strip().startswith("<string>${"):
183
+ lines[i] = None
184
+ lines[i - 1] = None
185
+ lines = '\n'.join(filter(lambda x: x is not None, lines))
186
+
187
+ # Write out the file with variables replaced.
188
+ fd = open(dest, 'w')
189
+ fd.write(lines)
190
+ fd.close()
191
+
192
+ # Now write out PkgInfo file now that the Info.plist file has been
193
+ # "compiled".
194
+ self._WritePkgInfo(dest)
195
+
196
+ if convert_to_binary == 'True':
197
+ self._ConvertToBinary(dest)
198
+
199
+ def _WritePkgInfo(self, info_plist):
200
+ """This writes the PkgInfo file from the data stored in Info.plist."""
201
+ plist = plistlib.readPlist(info_plist)
202
+ if not plist:
203
+ return
204
+
205
+ # Only create PkgInfo for executable types.
206
+ package_type = plist['CFBundlePackageType']
207
+ if package_type != 'APPL':
208
+ return
209
+
210
+ # The format of PkgInfo is eight characters, representing the bundle type
211
+ # and bundle signature, each four characters. If that is missing, four
212
+ # '?' characters are used instead.
213
+ signature_code = plist.get('CFBundleSignature', '????')
214
+ if len(signature_code) != 4: # Wrong length resets everything, too.
215
+ signature_code = '?' * 4
216
+
217
+ dest = os.path.join(os.path.dirname(info_plist), 'PkgInfo')
218
+ fp = open(dest, 'w')
219
+ fp.write('%s%s' % (package_type, signature_code))
220
+ fp.close()
221
+
222
+ def ExecFlock(self, lockfile, *cmd_list):
223
+ """Emulates the most basic behavior of Linux's flock(1)."""
224
+ # Rely on exception handling to report errors.
225
+ fd = os.open(lockfile, os.O_RDONLY|os.O_NOCTTY|os.O_CREAT, 0o666)
226
+ fcntl.flock(fd, fcntl.LOCK_EX)
227
+ return subprocess.call(cmd_list)
228
+
229
+ def ExecFilterLibtool(self, *cmd_list):
230
+ """Calls libtool and filters out '/path/to/libtool: file: foo.o has no
231
+ symbols'."""
232
+ libtool_re = re.compile(r'^.*libtool: file: .* has no symbols$')
233
+ libtool_re5 = re.compile(
234
+ r'^.*libtool: warning for library: ' +
235
+ r'.* the table of contents is empty ' +
236
+ r'\(no object file members in the library define global symbols\)$')
237
+ env = os.environ.copy()
238
+ # Ref:
239
+ # http://www.opensource.apple.com/source/cctools/cctools-809/misc/libtool.c
240
+ # The problem with this flag is that it resets the file mtime on the file to
241
+ # epoch=0, e.g. 1970-1-1 or 1969-12-31 depending on timezone.
242
+ env['ZERO_AR_DATE'] = '1'
243
+ libtoolout = subprocess.Popen(cmd_list, stderr=subprocess.PIPE, env=env)
244
+ _, err = libtoolout.communicate()
245
+ for line in err.splitlines():
246
+ if not libtool_re.match(line) and not libtool_re5.match(line):
247
+ print >>sys.stderr, line
248
+ # Unconditionally touch the output .a file on the command line if present
249
+ # and the command succeeded. A bit hacky.
250
+ if not libtoolout.returncode:
251
+ for i in range(len(cmd_list) - 1):
252
+ if cmd_list[i] == "-o" and cmd_list[i+1].endswith('.a'):
253
+ os.utime(cmd_list[i+1], None)
254
+ break
255
+ return libtoolout.returncode
256
+
257
+ def ExecPackageFramework(self, framework, version):
258
+ """Takes a path to Something.framework and the Current version of that and
259
+ sets up all the symlinks."""
260
+ # Find the name of the binary based on the part before the ".framework".
261
+ binary = os.path.basename(framework).split('.')[0]
262
+
263
+ CURRENT = 'Current'
264
+ RESOURCES = 'Resources'
265
+ VERSIONS = 'Versions'
266
+
267
+ if not os.path.exists(os.path.join(framework, VERSIONS, version, binary)):
268
+ # Binary-less frameworks don't seem to contain symlinks (see e.g.
269
+ # chromium's out/Debug/org.chromium.Chromium.manifest/ bundle).
270
+ return
271
+
272
+ # Move into the framework directory to set the symlinks correctly.
273
+ pwd = os.getcwd()
274
+ os.chdir(framework)
275
+
276
+ # Set up the Current version.
277
+ self._Relink(version, os.path.join(VERSIONS, CURRENT))
278
+
279
+ # Set up the root symlinks.
280
+ self._Relink(os.path.join(VERSIONS, CURRENT, binary), binary)
281
+ self._Relink(os.path.join(VERSIONS, CURRENT, RESOURCES), RESOURCES)
282
+
283
+ # Back to where we were before!
284
+ os.chdir(pwd)
285
+
286
+ def _Relink(self, dest, link):
287
+ """Creates a symlink to |dest| named |link|. If |link| already exists,
288
+ it is overwritten."""
289
+ if os.path.lexists(link):
290
+ os.remove(link)
291
+ os.symlink(dest, link)
292
+
293
+ def ExecCompileXcassets(self, keys, *inputs):
294
+ """Compiles multiple .xcassets files into a single .car file.
295
+
296
+ This invokes 'actool' to compile all the inputs .xcassets files. The
297
+ |keys| arguments is a json-encoded dictionary of extra arguments to
298
+ pass to 'actool' when the asset catalogs contains an application icon
299
+ or a launch image.
300
+
301
+ Note that 'actool' does not create the Assets.car file if the asset
302
+ catalogs does not contains imageset.
303
+ """
304
+ command_line = [
305
+ 'xcrun', 'actool', '--output-format', 'human-readable-text',
306
+ '--compress-pngs', '--notices', '--warnings', '--errors',
307
+ ]
308
+ is_iphone_target = 'IPHONEOS_DEPLOYMENT_TARGET' in os.environ
309
+ if is_iphone_target:
310
+ platform = os.environ['CONFIGURATION'].split('-')[-1]
311
+ if platform not in ('iphoneos', 'iphonesimulator'):
312
+ platform = 'iphonesimulator'
313
+ command_line.extend([
314
+ '--platform', platform, '--target-device', 'iphone',
315
+ '--target-device', 'ipad', '--minimum-deployment-target',
316
+ os.environ['IPHONEOS_DEPLOYMENT_TARGET'], '--compile',
317
+ os.path.abspath(os.environ['CONTENTS_FOLDER_PATH']),
318
+ ])
319
+ else:
320
+ command_line.extend([
321
+ '--platform', 'macosx', '--target-device', 'mac',
322
+ '--minimum-deployment-target', os.environ['MACOSX_DEPLOYMENT_TARGET'],
323
+ '--compile',
324
+ os.path.abspath(os.environ['UNLOCALIZED_RESOURCES_FOLDER_PATH']),
325
+ ])
326
+ if keys:
327
+ keys = json.loads(keys)
328
+ for key, value in keys.iteritems():
329
+ arg_name = '--' + key
330
+ if isinstance(value, bool):
331
+ if value:
332
+ command_line.append(arg_name)
333
+ elif isinstance(value, list):
334
+ for v in value:
335
+ command_line.append(arg_name)
336
+ command_line.append(str(v))
337
+ else:
338
+ command_line.append(arg_name)
339
+ command_line.append(str(value))
340
+ # Note: actool crashes if inputs path are relative, so use os.path.abspath
341
+ # to get absolute path name for inputs.
342
+ command_line.extend(map(os.path.abspath, inputs))
343
+ subprocess.check_call(command_line)
344
+
345
+ def ExecMergeInfoPlist(self, output, *inputs):
346
+ """Merge multiple .plist files into a single .plist file."""
347
+ merged_plist = {}
348
+ for path in inputs:
349
+ plist = self._LoadPlistMaybeBinary(path)
350
+ self._MergePlist(merged_plist, plist)
351
+ plistlib.writePlist(merged_plist, output)
352
+
353
+ def ExecCodeSignBundle(self, key, resource_rules, entitlements, provisioning):
354
+ """Code sign a bundle.
355
+
356
+ This function tries to code sign an iOS bundle, following the same
357
+ algorithm as Xcode:
358
+ 1. copy ResourceRules.plist from the user or the SDK into the bundle,
359
+ 2. pick the provisioning profile that best match the bundle identifier,
360
+ and copy it into the bundle as embedded.mobileprovision,
361
+ 3. copy Entitlements.plist from user or SDK next to the bundle,
362
+ 4. code sign the bundle.
363
+ """
364
+ resource_rules_path = self._InstallResourceRules(resource_rules)
365
+ substitutions, overrides = self._InstallProvisioningProfile(
366
+ provisioning, self._GetCFBundleIdentifier())
367
+ entitlements_path = self._InstallEntitlements(
368
+ entitlements, substitutions, overrides)
369
+ subprocess.check_call([
370
+ 'codesign', '--force', '--sign', key, '--resource-rules',
371
+ resource_rules_path, '--entitlements', entitlements_path,
372
+ os.path.join(
373
+ os.environ['TARGET_BUILD_DIR'],
374
+ os.environ['FULL_PRODUCT_NAME'])])
375
+
376
+ def _InstallResourceRules(self, resource_rules):
377
+ """Installs ResourceRules.plist from user or SDK into the bundle.
378
+
379
+ Args:
380
+ resource_rules: string, optional, path to the ResourceRules.plist file
381
+ to use, default to "${SDKROOT}/ResourceRules.plist"
382
+
383
+ Returns:
384
+ Path to the copy of ResourceRules.plist into the bundle.
385
+ """
386
+ source_path = resource_rules
387
+ target_path = os.path.join(
388
+ os.environ['BUILT_PRODUCTS_DIR'],
389
+ os.environ['CONTENTS_FOLDER_PATH'],
390
+ 'ResourceRules.plist')
391
+ if not source_path:
392
+ source_path = os.path.join(
393
+ os.environ['SDKROOT'], 'ResourceRules.plist')
394
+ shutil.copy2(source_path, target_path)
395
+ return target_path
396
+
397
+ def _InstallProvisioningProfile(self, profile, bundle_identifier):
398
+ """Installs embedded.mobileprovision into the bundle.
399
+
400
+ Args:
401
+ profile: string, optional, short name of the .mobileprovision file
402
+ to use, if empty or the file is missing, the best file installed
403
+ will be used
404
+ bundle_identifier: string, value of CFBundleIdentifier from Info.plist
405
+
406
+ Returns:
407
+ A tuple containing two dictionary: variables substitutions and values
408
+ to overrides when generating the entitlements file.
409
+ """
410
+ source_path, provisioning_data, team_id = self._FindProvisioningProfile(
411
+ profile, bundle_identifier)
412
+ target_path = os.path.join(
413
+ os.environ['BUILT_PRODUCTS_DIR'],
414
+ os.environ['CONTENTS_FOLDER_PATH'],
415
+ 'embedded.mobileprovision')
416
+ shutil.copy2(source_path, target_path)
417
+ substitutions = self._GetSubstitutions(bundle_identifier, team_id + '.')
418
+ return substitutions, provisioning_data['Entitlements']
419
+
420
+ def _FindProvisioningProfile(self, profile, bundle_identifier):
421
+ """Finds the .mobileprovision file to use for signing the bundle.
422
+
423
+ Checks all the installed provisioning profiles (or if the user specified
424
+ the PROVISIONING_PROFILE variable, only consult it) and select the most
425
+ specific that correspond to the bundle identifier.
426
+
427
+ Args:
428
+ profile: string, optional, short name of the .mobileprovision file
429
+ to use, if empty or the file is missing, the best file installed
430
+ will be used
431
+ bundle_identifier: string, value of CFBundleIdentifier from Info.plist
432
+
433
+ Returns:
434
+ A tuple of the path to the selected provisioning profile, the data of
435
+ the embedded plist in the provisioning profile and the team identifier
436
+ to use for code signing.
437
+
438
+ Raises:
439
+ SystemExit: if no .mobileprovision can be used to sign the bundle.
440
+ """
441
+ profiles_dir = os.path.join(
442
+ os.environ['HOME'], 'Library', 'MobileDevice', 'Provisioning Profiles')
443
+ if not os.path.isdir(profiles_dir):
444
+ print >>sys.stderr, (
445
+ 'cannot find mobile provisioning for %s' % bundle_identifier)
446
+ sys.exit(1)
447
+ provisioning_profiles = None
448
+ if profile:
449
+ profile_path = os.path.join(profiles_dir, profile + '.mobileprovision')
450
+ if os.path.exists(profile_path):
451
+ provisioning_profiles = [profile_path]
452
+ if not provisioning_profiles:
453
+ provisioning_profiles = glob.glob(
454
+ os.path.join(profiles_dir, '*.mobileprovision'))
455
+ valid_provisioning_profiles = {}
456
+ for profile_path in provisioning_profiles:
457
+ profile_data = self._LoadProvisioningProfile(profile_path)
458
+ app_id_pattern = profile_data.get(
459
+ 'Entitlements', {}).get('application-identifier', '')
460
+ for team_identifier in profile_data.get('TeamIdentifier', []):
461
+ app_id = '%s.%s' % (team_identifier, bundle_identifier)
462
+ if fnmatch.fnmatch(app_id, app_id_pattern):
463
+ valid_provisioning_profiles[app_id_pattern] = (
464
+ profile_path, profile_data, team_identifier)
465
+ if not valid_provisioning_profiles:
466
+ print >>sys.stderr, (
467
+ 'cannot find mobile provisioning for %s' % bundle_identifier)
468
+ sys.exit(1)
469
+ # If the user has multiple provisioning profiles installed that can be
470
+ # used for ${bundle_identifier}, pick the most specific one (ie. the
471
+ # provisioning profile whose pattern is the longest).
472
+ selected_key = max(valid_provisioning_profiles, key=lambda v: len(v))
473
+ return valid_provisioning_profiles[selected_key]
474
+
475
+ def _LoadProvisioningProfile(self, profile_path):
476
+ """Extracts the plist embedded in a provisioning profile.
477
+
478
+ Args:
479
+ profile_path: string, path to the .mobileprovision file
480
+
481
+ Returns:
482
+ Content of the plist embedded in the provisioning profile as a dictionary.
483
+ """
484
+ with tempfile.NamedTemporaryFile() as temp:
485
+ subprocess.check_call([
486
+ 'security', 'cms', '-D', '-i', profile_path, '-o', temp.name])
487
+ return self._LoadPlistMaybeBinary(temp.name)
488
+
489
+ def _MergePlist(self, merged_plist, plist):
490
+ """Merge |plist| into |merged_plist|."""
491
+ for key, value in plist.iteritems():
492
+ if isinstance(value, dict):
493
+ merged_value = merged_plist.get(key, {})
494
+ if isinstance(merged_value, dict):
495
+ self._MergePlist(merged_value, value)
496
+ merged_plist[key] = merged_value
497
+ else:
498
+ merged_plist[key] = value
499
+ else:
500
+ merged_plist[key] = value
501
+
502
+ def _LoadPlistMaybeBinary(self, plist_path):
503
+ """Loads into a memory a plist possibly encoded in binary format.
504
+
505
+ This is a wrapper around plistlib.readPlist that tries to convert the
506
+ plist to the XML format if it can't be parsed (assuming that it is in
507
+ the binary format).
508
+
509
+ Args:
510
+ plist_path: string, path to a plist file, in XML or binary format
511
+
512
+ Returns:
513
+ Content of the plist as a dictionary.
514
+ """
515
+ try:
516
+ # First, try to read the file using plistlib that only supports XML,
517
+ # and if an exception is raised, convert a temporary copy to XML and
518
+ # load that copy.
519
+ return plistlib.readPlist(plist_path)
520
+ except:
521
+ pass
522
+ with tempfile.NamedTemporaryFile() as temp:
523
+ shutil.copy2(plist_path, temp.name)
524
+ subprocess.check_call(['plutil', '-convert', 'xml1', temp.name])
525
+ return plistlib.readPlist(temp.name)
526
+
527
+ def _GetSubstitutions(self, bundle_identifier, app_identifier_prefix):
528
+ """Constructs a dictionary of variable substitutions for Entitlements.plist.
529
+
530
+ Args:
531
+ bundle_identifier: string, value of CFBundleIdentifier from Info.plist
532
+ app_identifier_prefix: string, value for AppIdentifierPrefix
533
+
534
+ Returns:
535
+ Dictionary of substitutions to apply when generating Entitlements.plist.
536
+ """
537
+ return {
538
+ 'CFBundleIdentifier': bundle_identifier,
539
+ 'AppIdentifierPrefix': app_identifier_prefix,
540
+ }
541
+
542
+ def _GetCFBundleIdentifier(self):
543
+ """Extracts CFBundleIdentifier value from Info.plist in the bundle.
544
+
545
+ Returns:
546
+ Value of CFBundleIdentifier in the Info.plist located in the bundle.
547
+ """
548
+ info_plist_path = os.path.join(
549
+ os.environ['TARGET_BUILD_DIR'],
550
+ os.environ['INFOPLIST_PATH'])
551
+ info_plist_data = self._LoadPlistMaybeBinary(info_plist_path)
552
+ return info_plist_data['CFBundleIdentifier']
553
+
554
+ def _InstallEntitlements(self, entitlements, substitutions, overrides):
555
+ """Generates and install the ${BundleName}.xcent entitlements file.
556
+
557
+ Expands variables "$(variable)" pattern in the source entitlements file,
558
+ add extra entitlements defined in the .mobileprovision file and the copy
559
+ the generated plist to "${BundlePath}.xcent".
560
+
561
+ Args:
562
+ entitlements: string, optional, path to the Entitlements.plist template
563
+ to use, defaults to "${SDKROOT}/Entitlements.plist"
564
+ substitutions: dictionary, variable substitutions
565
+ overrides: dictionary, values to add to the entitlements
566
+
567
+ Returns:
568
+ Path to the generated entitlements file.
569
+ """
570
+ source_path = entitlements
571
+ target_path = os.path.join(
572
+ os.environ['BUILT_PRODUCTS_DIR'],
573
+ os.environ['PRODUCT_NAME'] + '.xcent')
574
+ if not source_path:
575
+ source_path = os.path.join(
576
+ os.environ['SDKROOT'],
577
+ 'Entitlements.plist')
578
+ shutil.copy2(source_path, target_path)
579
+ data = self._LoadPlistMaybeBinary(target_path)
580
+ data = self._ExpandVariables(data, substitutions)
581
+ if overrides:
582
+ for key in overrides:
583
+ if key not in data:
584
+ data[key] = overrides[key]
585
+ plistlib.writePlist(data, target_path)
586
+ return target_path
587
+
588
+ def _ExpandVariables(self, data, substitutions):
589
+ """Expands variables "$(variable)" in data.
590
+
591
+ Args:
592
+ data: object, can be either string, list or dictionary
593
+ substitutions: dictionary, variable substitutions to perform
594
+
595
+ Returns:
596
+ Copy of data where each references to "$(variable)" has been replaced
597
+ by the corresponding value found in substitutions, or left intact if
598
+ the key was not found.
599
+ """
600
+ if isinstance(data, str):
601
+ for key, value in substitutions.iteritems():
602
+ data = data.replace('$(%s)' % key, value)
603
+ return data
604
+ if isinstance(data, list):
605
+ return [self._ExpandVariables(v, substitutions) for v in data]
606
+ if isinstance(data, dict):
607
+ return dict((k, self._ExpandVariables(data[k],
608
+ substitutions)) for k in data)
609
+ return data
610
+
611
+ if __name__ == '__main__':
612
+ sys.exit(main(sys.argv[1:]))
@@ -0,0 +1,82 @@
1
+ {
2
+ "_args": [
3
+ [
4
+ "abbrev@1",
5
+ "/Users/eshanker/Code/fsevents/node_modules/nopt"
6
+ ]
7
+ ],
8
+ "_from": "abbrev@>=1.0.0 <2.0.0",
9
+ "_id": "abbrev@1.0.9",
10
+ "_inCache": true,
11
+ "_installable": true,
12
+ "_location": "/abbrev",
13
+ "_nodeVersion": "4.4.4",
14
+ "_npmOperationalInternal": {
15
+ "host": "packages-16-east.internal.npmjs.com",
16
+ "tmp": "tmp/abbrev-1.0.9.tgz_1466016055839_0.7825860097073019"
17
+ },
18
+ "_npmUser": {
19
+ "email": "i@izs.me",
20
+ "name": "isaacs"
21
+ },
22
+ "_npmVersion": "3.9.1",
23
+ "_phantomChildren": {},
24
+ "_requested": {
25
+ "name": "abbrev",
26
+ "raw": "abbrev@1",
27
+ "rawSpec": "1",
28
+ "scope": null,
29
+ "spec": ">=1.0.0 <2.0.0",
30
+ "type": "range"
31
+ },
32
+ "_requiredBy": [
33
+ "/nopt",
34
+ "/tap/nopt"
35
+ ],
36
+ "_resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz",
37
+ "_shasum": "91b4792588a7738c25f35dd6f63752a2f8776135",
38
+ "_shrinkwrap": null,
39
+ "_spec": "abbrev@1",
40
+ "_where": "/Users/eshanker/Code/fsevents/node_modules/nopt",
41
+ "author": {
42
+ "email": "i@izs.me",
43
+ "name": "Isaac Z. Schlueter"
44
+ },
45
+ "bugs": {
46
+ "url": "https://github.com/isaacs/abbrev-js/issues"
47
+ },
48
+ "dependencies": {},
49
+ "description": "Like ruby's abbrev module, but in js",
50
+ "devDependencies": {
51
+ "tap": "^5.7.2"
52
+ },
53
+ "directories": {},
54
+ "dist": {
55
+ "shasum": "91b4792588a7738c25f35dd6f63752a2f8776135",
56
+ "tarball": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz"
57
+ },
58
+ "files": [
59
+ "abbrev.js"
60
+ ],
61
+ "gitHead": "c386cd9dbb1d8d7581718c54d4ba944cc9298d6f",
62
+ "homepage": "https://github.com/isaacs/abbrev-js#readme",
63
+ "license": "ISC",
64
+ "main": "abbrev.js",
65
+ "maintainers": [
66
+ {
67
+ "name": "isaacs",
68
+ "email": "i@izs.me"
69
+ }
70
+ ],
71
+ "name": "abbrev",
72
+ "optionalDependencies": {},
73
+ "readme": "ERROR: No README data found!",
74
+ "repository": {
75
+ "type": "git",
76
+ "url": "git+ssh://git@github.com/isaacs/abbrev-js.git"
77
+ },
78
+ "scripts": {
79
+ "test": "tap test.js --cov"
80
+ },
81
+ "version": "1.0.9"
82
+ }