@emulsify/cli 1.11.3 → 1.12.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.
Files changed (149) hide show
  1. package/dist/index.js +3 -1
  2. package/dist/node_modules/.package-lock.json +34 -24
  3. package/dist/node_modules/@types/node/README.md +2 -2
  4. package/dist/node_modules/@types/node/assert.d.ts +23 -1
  5. package/dist/node_modules/@types/node/async_hooks.d.ts +64 -0
  6. package/dist/node_modules/@types/node/buffer.buffer.d.ts +124 -38
  7. package/dist/node_modules/@types/node/buffer.d.ts +19 -17
  8. package/dist/node_modules/@types/node/child_process.d.ts +88 -161
  9. package/dist/node_modules/@types/node/cluster.d.ts +5 -6
  10. package/dist/node_modules/@types/node/constants.d.ts +14 -12
  11. package/dist/node_modules/@types/node/crypto.d.ts +237 -171
  12. package/dist/node_modules/@types/node/dgram.d.ts +15 -14
  13. package/dist/node_modules/@types/node/diagnostics_channel.d.ts +39 -15
  14. package/dist/node_modules/@types/node/dns/promises.d.ts +11 -9
  15. package/dist/node_modules/@types/node/dns.d.ts +28 -21
  16. package/dist/node_modules/@types/node/events.d.ts +81 -35
  17. package/dist/node_modules/@types/node/fs/promises.d.ts +61 -36
  18. package/dist/node_modules/@types/node/fs.d.ts +251 -193
  19. package/dist/node_modules/@types/node/globals.d.ts +146 -442
  20. package/dist/node_modules/@types/node/globals.typedarray.d.ts +17 -0
  21. package/dist/node_modules/@types/node/http.d.ts +137 -32
  22. package/dist/node_modules/@types/node/http2.d.ts +102 -26
  23. package/dist/node_modules/@types/node/https.d.ts +94 -60
  24. package/dist/node_modules/@types/node/index.d.ts +5 -3
  25. package/dist/node_modules/@types/node/{inspector.d.ts → inspector.generated.d.ts} +272 -2
  26. package/dist/node_modules/@types/node/module.d.ts +362 -138
  27. package/dist/node_modules/@types/node/net.d.ts +27 -20
  28. package/dist/node_modules/@types/node/os.d.ts +14 -3
  29. package/dist/node_modules/@types/node/package.json +4 -89
  30. package/dist/node_modules/@types/node/perf_hooks.d.ts +37 -10
  31. package/dist/node_modules/@types/node/process.d.ts +108 -35
  32. package/dist/node_modules/@types/node/querystring.d.ts +2 -3
  33. package/dist/node_modules/@types/node/readline/promises.d.ts +15 -3
  34. package/dist/node_modules/@types/node/readline.d.ts +66 -17
  35. package/dist/node_modules/@types/node/stream/consumers.d.ts +33 -7
  36. package/dist/node_modules/@types/node/stream/web.d.ts +13 -4
  37. package/dist/node_modules/@types/node/stream.d.ts +963 -1014
  38. package/dist/node_modules/@types/node/string_decoder.d.ts +2 -2
  39. package/dist/node_modules/@types/node/test.d.ts +1504 -1655
  40. package/dist/node_modules/@types/node/timers/promises.d.ts +28 -17
  41. package/dist/node_modules/@types/node/timers.d.ts +157 -111
  42. package/dist/node_modules/@types/node/tls.d.ts +105 -67
  43. package/dist/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +120 -37
  44. package/dist/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
  45. package/dist/node_modules/@types/node/ts5.6/index.d.ts +5 -3
  46. package/dist/node_modules/@types/node/url.d.ts +10 -1
  47. package/dist/node_modules/@types/node/util.d.ts +43 -10
  48. package/dist/node_modules/@types/node/v8.d.ts +7 -6
  49. package/dist/node_modules/@types/node/vm.d.ts +148 -70
  50. package/dist/node_modules/@types/node/wasi.d.ts +1 -1
  51. package/dist/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  52. package/dist/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  53. package/dist/node_modules/@types/node/web-globals/events.d.ts +97 -0
  54. package/dist/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
  55. package/dist/node_modules/@types/node/worker_threads.d.ts +60 -39
  56. package/dist/node_modules/@types/node/zlib.d.ts +21 -20
  57. package/dist/node_modules/debug/package.json +7 -3
  58. package/dist/node_modules/debug/src/browser.js +2 -1
  59. package/dist/node_modules/debug/src/common.js +57 -39
  60. package/dist/node_modules/fast-uri/.github/dependabot.yml +1 -1
  61. package/dist/node_modules/fast-uri/.github/workflows/ci.yml +81 -3
  62. package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +6 -2
  63. package/dist/node_modules/fast-uri/LICENSE +3 -1
  64. package/dist/node_modules/fast-uri/README.md +55 -37
  65. package/dist/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  66. package/dist/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  67. package/dist/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  68. package/dist/node_modules/fast-uri/benchmark/package.json +17 -0
  69. package/dist/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  70. package/dist/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  71. package/dist/node_modules/fast-uri/eslint.config.js +6 -0
  72. package/dist/node_modules/fast-uri/index.js +98 -61
  73. package/dist/node_modules/fast-uri/lib/schemes.js +160 -81
  74. package/dist/node_modules/fast-uri/lib/utils.js +217 -123
  75. package/dist/node_modules/fast-uri/package.json +44 -14
  76. package/dist/node_modules/fast-uri/test/ajv.test.js +7 -3
  77. package/dist/node_modules/fast-uri/test/equal.test.js +7 -2
  78. package/dist/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
  79. package/dist/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  80. package/dist/node_modules/fast-uri/test/parse.test.js +31 -31
  81. package/dist/node_modules/fast-uri/test/resolve.test.js +52 -49
  82. package/dist/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  83. package/dist/node_modules/fast-uri/test/serialize.test.js +55 -47
  84. package/dist/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  85. package/dist/node_modules/fast-uri/test/uri-js.test.js +230 -230
  86. package/dist/node_modules/fast-uri/test/util.test.js +23 -8
  87. package/dist/node_modules/fast-uri/tsconfig.json +9 -0
  88. package/dist/node_modules/fast-uri/types/index.d.ts +16 -9
  89. package/dist/node_modules/fast-uri/types/index.test-d.ts +9 -9
  90. package/dist/node_modules/fs-extra/LICENSE +1 -1
  91. package/dist/node_modules/fs-extra/README.md +3 -1
  92. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +11 -1
  93. package/dist/node_modules/fs-extra/lib/copy/copy.js +13 -15
  94. package/dist/node_modules/fs-extra/lib/fs/index.js +6 -0
  95. package/dist/node_modules/fs-extra/lib/util/async.js +29 -0
  96. package/dist/node_modules/fs-extra/lib/util/stat.js +2 -1
  97. package/dist/node_modules/fs-extra/package.json +1 -1
  98. package/dist/node_modules/jsonfile/README.md +1 -1
  99. package/dist/node_modules/jsonfile/index.js +3 -3
  100. package/dist/node_modules/jsonfile/package.json +1 -1
  101. package/dist/node_modules/simple-git/dist/cjs/index.js +235 -235
  102. package/dist/node_modules/simple-git/dist/cjs/index.js.map +3 -3
  103. package/dist/node_modules/simple-git/dist/esm/index.js +229 -233
  104. package/dist/node_modules/simple-git/dist/esm/index.js.map +3 -3
  105. package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +1 -1
  106. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +1 -1
  107. package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +2 -3
  108. package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +2 -3
  109. package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -1
  110. package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +1 -1
  111. package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +2 -2
  112. package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +1 -1
  113. package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +1 -1
  114. package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +1 -1
  115. package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +3 -3
  116. package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +1 -1
  117. package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +4 -2
  118. package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +3 -3
  119. package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +1 -1
  120. package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +2 -2
  121. package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +1 -1
  122. package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +9 -13
  123. package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +5 -6
  124. package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +5 -7
  125. package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -1
  126. package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +1 -1
  127. package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +1 -1
  128. package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +11 -10
  129. package/dist/node_modules/simple-git/package.json +6 -6
  130. package/dist/node_modules/simple-git/readme.md +8 -0
  131. package/dist/node_modules/undici-types/dispatcher.d.ts +1 -0
  132. package/dist/node_modules/undici-types/eventsource.d.ts +0 -2
  133. package/dist/node_modules/undici-types/filereader.d.ts +1 -1
  134. package/dist/node_modules/undici-types/interceptors.d.ts +3 -1
  135. package/dist/node_modules/undici-types/package.json +1 -1
  136. package/dist/node_modules/undici-types/patch.d.ts +0 -38
  137. package/dist/node_modules/undici-types/readable.d.ts +5 -0
  138. package/dist/node_modules/undici-types/webidl.d.ts +6 -0
  139. package/dist/node_modules/undici-types/websocket.d.ts +0 -2
  140. package/dist/package-lock.json +969 -1002
  141. package/dist/package.json +1 -1
  142. package/dist/util/getAvailableStarters.js +2 -2
  143. package/package.json +1 -1
  144. package/dist/node_modules/@types/node/dom-events.d.ts +0 -124
  145. package/dist/node_modules/fast-uri/benchmark.js +0 -105
  146. package/dist/node_modules/fast-uri/lib/scopedChars.js +0 -30
  147. package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
  148. package/dist/node_modules/fast-uri/test/compatibility.test.js +0 -131
  149. package/dist/node_modules/jsonfile/CHANGELOG.md +0 -171
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulsify/cli",
3
- "version": "1.11.3",
3
+ "version": "1.12.0",
4
4
  "description": "Command line interface for Emulsify",
5
5
  "repository": "git@github.com:emulsify-ds/emulsify-cli.git",
6
6
  "author": "Patrick Coffey <patrickcoffey48@gmail.com>",
@@ -4,9 +4,9 @@ function getAvailableStarters() {
4
4
  return [
5
5
  {
6
6
  platform: 'drupal',
7
- platformMajorVersion: 9,
7
+ platformMajorVersion: 11,
8
8
  repository: 'https://github.com/emulsify-ds/emulsify-drupal.git',
9
- checkout: 'master',
9
+ checkout: 'main',
10
10
  },
11
11
  ];
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulsify/cli",
3
- "version": "1.11.3",
3
+ "version": "1.12.0",
4
4
  "description": "Command line interface for Emulsify",
5
5
  "repository": "git@github.com:emulsify-ds/emulsify-cli.git",
6
6
  "author": "Patrick Coffey <patrickcoffey48@gmail.com>",
@@ -1,124 +0,0 @@
1
- export {}; // Don't export anything!
2
-
3
- //// DOM-like Events
4
- // NB: The Event / EventTarget / EventListener implementations below were copied
5
- // from lib.dom.d.ts, then edited to reflect Node's documentation at
6
- // https://nodejs.org/api/events.html#class-eventtarget.
7
- // Please read that link to understand important implementation differences.
8
-
9
- // This conditional type will be the existing global Event in a browser, or
10
- // the copy below in a Node environment.
11
- type __Event = typeof globalThis extends { onmessage: any; Event: any } ? {}
12
- : {
13
- /** This is not used in Node.js and is provided purely for completeness. */
14
- readonly bubbles: boolean;
15
- /** Alias for event.stopPropagation(). This is not used in Node.js and is provided purely for completeness. */
16
- cancelBubble: () => void;
17
- /** True if the event was created with the cancelable option */
18
- readonly cancelable: boolean;
19
- /** This is not used in Node.js and is provided purely for completeness. */
20
- readonly composed: boolean;
21
- /** Returns an array containing the current EventTarget as the only entry or empty if the event is not being dispatched. This is not used in Node.js and is provided purely for completeness. */
22
- composedPath(): [EventTarget?];
23
- /** Alias for event.target. */
24
- readonly currentTarget: EventTarget | null;
25
- /** Is true if cancelable is true and event.preventDefault() has been called. */
26
- readonly defaultPrevented: boolean;
27
- /** This is not used in Node.js and is provided purely for completeness. */
28
- readonly eventPhase: 0 | 2;
29
- /** The `AbortSignal` "abort" event is emitted with `isTrusted` set to `true`. The value is `false` in all other cases. */
30
- readonly isTrusted: boolean;
31
- /** Sets the `defaultPrevented` property to `true` if `cancelable` is `true`. */
32
- preventDefault(): void;
33
- /** This is not used in Node.js and is provided purely for completeness. */
34
- returnValue: boolean;
35
- /** Alias for event.target. */
36
- readonly srcElement: EventTarget | null;
37
- /** Stops the invocation of event listeners after the current one completes. */
38
- stopImmediatePropagation(): void;
39
- /** This is not used in Node.js and is provided purely for completeness. */
40
- stopPropagation(): void;
41
- /** The `EventTarget` dispatching the event */
42
- readonly target: EventTarget | null;
43
- /** The millisecond timestamp when the Event object was created. */
44
- readonly timeStamp: number;
45
- /** Returns the type of event, e.g. "click", "hashchange", or "submit". */
46
- readonly type: string;
47
- };
48
-
49
- // See comment above explaining conditional type
50
- type __EventTarget = typeof globalThis extends { onmessage: any; EventTarget: any } ? {}
51
- : {
52
- /**
53
- * Adds a new handler for the `type` event. Any given `listener` is added only once per `type` and per `capture` option value.
54
- *
55
- * If the `once` option is true, the `listener` is removed after the next time a `type` event is dispatched.
56
- *
57
- * The `capture` option is not used by Node.js in any functional way other than tracking registered event listeners per the `EventTarget` specification.
58
- * Specifically, the `capture` option is used as part of the key when registering a `listener`.
59
- * Any individual `listener` may be added once with `capture = false`, and once with `capture = true`.
60
- */
61
- addEventListener(
62
- type: string,
63
- listener: EventListener | EventListenerObject,
64
- options?: AddEventListenerOptions | boolean,
65
- ): void;
66
- /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
67
- dispatchEvent(event: Event): boolean;
68
- /** Removes the event listener in target's event listener list with the same type, callback, and options. */
69
- removeEventListener(
70
- type: string,
71
- listener: EventListener | EventListenerObject,
72
- options?: EventListenerOptions | boolean,
73
- ): void;
74
- };
75
-
76
- interface EventInit {
77
- bubbles?: boolean;
78
- cancelable?: boolean;
79
- composed?: boolean;
80
- }
81
-
82
- interface EventListenerOptions {
83
- /** Not directly used by Node.js. Added for API completeness. Default: `false`. */
84
- capture?: boolean;
85
- }
86
-
87
- interface AddEventListenerOptions extends EventListenerOptions {
88
- /** When `true`, the listener is automatically removed when it is first invoked. Default: `false`. */
89
- once?: boolean;
90
- /** When `true`, serves as a hint that the listener will not call the `Event` object's `preventDefault()` method. Default: false. */
91
- passive?: boolean;
92
- /** The listener will be removed when the given AbortSignal object's `abort()` method is called. */
93
- signal?: AbortSignal;
94
- }
95
-
96
- interface EventListener {
97
- (evt: Event): void;
98
- }
99
-
100
- interface EventListenerObject {
101
- handleEvent(object: Event): void;
102
- }
103
-
104
- import {} from "events"; // Make this an ambient declaration
105
- declare global {
106
- /** An event which takes place in the DOM. */
107
- interface Event extends __Event {}
108
- var Event: typeof globalThis extends { onmessage: any; Event: infer T } ? T
109
- : {
110
- prototype: __Event;
111
- new(type: string, eventInitDict?: EventInit): __Event;
112
- };
113
-
114
- /**
115
- * EventTarget is a DOM interface implemented by objects that can
116
- * receive events and may have listeners for them.
117
- */
118
- interface EventTarget extends __EventTarget {}
119
- var EventTarget: typeof globalThis extends { onmessage: any; EventTarget: infer T } ? T
120
- : {
121
- prototype: __EventTarget;
122
- new(): __EventTarget;
123
- };
124
- }
@@ -1,105 +0,0 @@
1
- 'use strict'
2
-
3
- const benchmark = require('benchmark')
4
- const suite = new benchmark.Suite()
5
- const fasturi = require('./')
6
- const urijs = require('uri-js')
7
-
8
- const base = 'uri://a/b/c/d;p?q'
9
-
10
- const domain = 'https://example.com/foo#bar$fiz'
11
- const ipv4 = '//10.10.10.10'
12
- const ipv6 = '//[2001:db8::7]'
13
- const urn = 'urn:foo:a123,456'
14
- const urnuuid = 'urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6'
15
-
16
- // Initialization as there is a lot to parse at first
17
- // eg: regexes
18
- fasturi.parse(domain)
19
- urijs.parse(domain)
20
-
21
- suite.add('fast-uri: parse domain', function () {
22
- fasturi.parse(domain)
23
- })
24
- suite.add('urijs: parse domain', function () {
25
- urijs.parse(domain)
26
- })
27
- suite.add('WHATWG URL: parse domain', function () {
28
- // eslint-disable-next-line
29
- new URL(domain)
30
- })
31
- suite.add('fast-uri: parse IPv4', function () {
32
- fasturi.parse(ipv4)
33
- })
34
- suite.add('urijs: parse IPv4', function () {
35
- urijs.parse(ipv4)
36
- })
37
- suite.add('fast-uri: parse IPv6', function () {
38
- fasturi.parse(ipv6)
39
- })
40
- suite.add('urijs: parse IPv6', function () {
41
- urijs.parse(ipv6)
42
- })
43
- suite.add('fast-uri: parse URN', function () {
44
- fasturi.parse(urn)
45
- })
46
- suite.add('urijs: parse URN', function () {
47
- urijs.parse(urn)
48
- })
49
- suite.add('WHATWG URL: parse URN', function () {
50
- // eslint-disable-next-line
51
- new URL(urn)
52
- })
53
- suite.add('fast-uri: parse URN uuid', function () {
54
- fasturi.parse(urnuuid)
55
- })
56
- suite.add('urijs: parse URN uuid', function () {
57
- urijs.parse(urnuuid)
58
- })
59
- suite.add('fast-uri: serialize uri', function () {
60
- fasturi.serialize({
61
- scheme: 'uri',
62
- userinfo: 'foo:bar',
63
- host: 'example.com',
64
- port: 1,
65
- path: 'path',
66
- query: 'query',
67
- fragment: 'fragment'
68
- })
69
- })
70
- suite.add('urijs: serialize uri', function () {
71
- urijs.serialize({
72
- scheme: 'uri',
73
- userinfo: 'foo:bar',
74
- host: 'example.com',
75
- port: 1,
76
- path: 'path',
77
- query: 'query',
78
- fragment: 'fragment'
79
- })
80
- })
81
- suite.add('fast-uri: serialize IPv6', function () {
82
- fasturi.serialize({ host: '2606:2800:220:1:248:1893:25c8:1946' })
83
- })
84
- suite.add('urijs: serialize IPv6', function () {
85
- urijs.serialize({ host: '2606:2800:220:1:248:1893:25c8:1946' })
86
- })
87
- suite.add('fast-uri: serialize ws', function () {
88
- fasturi.serialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo?bar', secure: true })
89
- })
90
- suite.add('urijs: serialize ws', function () {
91
- urijs.serialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo?bar', secure: true })
92
- })
93
- suite.add('fast-uri: resolve', function () {
94
- fasturi.resolve(base, '../../../g')
95
- })
96
- suite.add('urijs: resolve', function () {
97
- urijs.resolve(base, '../../../g')
98
- })
99
- suite.on('cycle', cycle)
100
-
101
- suite.run()
102
-
103
- function cycle (e) {
104
- console.log(e.target.toString())
105
- }
@@ -1,30 +0,0 @@
1
- 'use strict'
2
-
3
- const HEX = {
4
- 0: 0,
5
- 1: 1,
6
- 2: 2,
7
- 3: 3,
8
- 4: 4,
9
- 5: 5,
10
- 6: 6,
11
- 7: 7,
12
- 8: 8,
13
- 9: 9,
14
- a: 10,
15
- A: 10,
16
- b: 11,
17
- B: 11,
18
- c: 12,
19
- C: 12,
20
- d: 13,
21
- D: 13,
22
- e: 14,
23
- E: 14,
24
- f: 15,
25
- F: 15
26
- }
27
-
28
- module.exports = {
29
- HEX
30
- }
File without changes
@@ -1,131 +0,0 @@
1
- 'use strict'
2
-
3
- const test = require('tape')
4
- const fastifyURI = require('../')
5
- const urijs = require('uri-js')
6
-
7
- test('compatibility Parse', (t) => {
8
- const toParse = [
9
- '//www.g.com/error\n/bleh/bleh',
10
- 'https://fastify.org',
11
- '/definitions/Record%3Cstring%2CPerson%3E',
12
- '//10.10.10.10',
13
- // '//10.10.000.10', <-- not a valid URI per URI spec: https://datatracker.ietf.org/doc/html/rfc5954#section-4.1
14
- '//[2001:db8::7%en0]',
15
- '//[2001:dbZ::1]:80',
16
- '//[2001:db8::1]:80',
17
- '//[2001:db8::001]:80',
18
- 'uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body',
19
- 'http://user:pass@example.com:123/one/space in.url?q1=a1&q2=a2#body',
20
- 'http://User:Pass@example.com:123/one/space in.url?q1=a1&q2=a2#body',
21
- 'http://A%3AB@example.com:123/one/space',
22
- '//[::ffff:129.144.52.38]',
23
- 'uri://10.10.10.10.example.com/en/process',
24
- '//[2606:2800:220:1:248:1893:25c8:1946]/test',
25
- 'ws://example.com/chat',
26
- 'ws://example.com/foo?bar=baz',
27
- 'wss://example.com/?bar=baz',
28
- 'wss://example.com/chat',
29
- 'wss://example.com/foo?bar=baz',
30
- 'wss://example.com/?bar=baz',
31
- 'urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6',
32
- 'urn:uuid:notauuid-7dec-11d0-a765-00a0c91e6bf6',
33
- 'urn:example:%D0%B0123,z456',
34
- '//[2606:2800:220:1:248:1893:25c8:1946:43209]',
35
- 'http://foo.bar',
36
- 'http://',
37
- '#/$defs/stringMap',
38
- '#/$defs/string%20Map',
39
- '#/$defs/string Map',
40
- '//?json=%7B%22foo%22%3A%22bar%22%7D'
41
- // 'mailto:chris@example.com'-203845,
42
- // 'mailto:infobot@example.com?subject=current-issue',
43
- // 'mailto:infobot@example.com?body=send%20current-issue',
44
- // 'mailto:infobot@example.com?body=send%20current-issue%0D%0Asend%20index',
45
- // 'mailto:list@example.org?In-Reply-To=%3C3469A91.D10AF4C@example.com%3E',
46
- // 'mailto:majordomo@example.com?body=subscribe%20bamboo-l',
47
- // 'mailto:joe@example.com?cc=bob@example.com&body=hello',
48
- // 'mailto:gorby%25kremvax@example.com',
49
- // 'mailto:unlikely%3Faddress@example.com?blat=foop',
50
- // 'mailto:Mike%26family@example.org',
51
- // 'mailto:%22not%40me%22@example.org',
52
- // 'mailto:%22oh%5C%5Cno%22@example.org',
53
- // 'mailto:%22%5C%5C%5C%22it\'s%5C%20ugly%5C%5C%5C%22%22@example.org',
54
- // 'mailto:user@example.org?subject=caf%C3%A9',
55
- // 'mailto:user@example.org?subject=%3D%3Futf-8%3FQ%3Fcaf%3DC3%3DA9%3F%3D',
56
- // 'mailto:user@example.org?subject=%3D%3Fiso-8859-1%3FQ%3Fcaf%3DE9%3F%3D',
57
- // 'mailto:user@example.org?subject=caf%C3%A9&body=caf%C3%A9',
58
- // 'mailto:user@%E7%B4%8D%E8%B1%86.example.org?subject=Test&body=NATTO'
59
- ]
60
- toParse.forEach((x) => {
61
- t.same(fastifyURI.parse(x), urijs.parse(x), 'Compatibility parse: ' + x)
62
- })
63
- t.end()
64
- })
65
-
66
- test('compatibility serialize', (t) => {
67
- const toSerialize = [
68
- { host: '10.10.10.10.example.com' },
69
- { host: '2001:db8::7' },
70
- { host: '::ffff:129.144.52.38' },
71
- { host: '2606:2800:220:1:248:1893:25c8:1946' },
72
- { host: '10.10.10.10.example.com' },
73
- { host: '10.10.10.10' },
74
- { path: '?query' },
75
- { path: 'foo:bar' },
76
- { path: '//path' },
77
- {
78
- scheme: 'uri',
79
- host: 'example.com',
80
- port: '9000'
81
- },
82
- {
83
- scheme: 'uri',
84
- userinfo: 'foo:bar',
85
- host: 'example.com',
86
- port: 1,
87
- path: 'path',
88
- query: 'query',
89
- fragment: 'fragment'
90
- },
91
- {
92
- scheme: '',
93
- userinfo: '',
94
- host: '',
95
- port: 0,
96
- path: '',
97
- query: '',
98
- fragment: ''
99
- },
100
- {
101
- scheme: undefined,
102
- userinfo: undefined,
103
- host: undefined,
104
- port: undefined,
105
- path: undefined,
106
- query: undefined,
107
- fragment: undefined
108
- },
109
- { host: 'fe80::a%en1' },
110
- { host: 'fe80::a%25en1' },
111
- {
112
- scheme: 'ws',
113
- host: 'example.com',
114
- resourceName: '/foo?bar',
115
- secure: true
116
- },
117
- {
118
- scheme: 'scheme',
119
- path: 'with:colon'
120
- }
121
- ]
122
- toSerialize.forEach((x) => {
123
- const r = JSON.stringify(x)
124
- t.same(
125
- fastifyURI.serialize(x),
126
- urijs.serialize(x),
127
- 'Compatibility serialize: ' + JSON.stringify(r)
128
- )
129
- })
130
- t.end()
131
- })
@@ -1,171 +0,0 @@
1
- 6.1.0 / 2020-10-31
2
- ------------------
3
-
4
- - Add `finalEOL` option to disable writing final EOL ([#115](https://github.com/jprichardson/node-jsonfile/issues/115), [#137](https://github.com/jprichardson/node-jsonfile/pull/137))
5
- - Update dependency ([#138](https://github.com/jprichardson/node-jsonfile/pull/138))
6
-
7
- 6.0.1 / 2020-03-07
8
- ------------------
9
-
10
- - Update dependency ([#130](https://github.com/jprichardson/node-jsonfile/pull/130))
11
- - Fix code style ([#129](https://github.com/jprichardson/node-jsonfile/pull/129))
12
-
13
- 6.0.0 / 2020-02-24
14
- ------------------
15
-
16
- - **BREAKING:** Drop support for Node 6 & 8 ([#128](https://github.com/jprichardson/node-jsonfile/pull/128))
17
- - **BREAKING:** Do not allow passing `null` as options to `readFile()` or `writeFile()` ([#128](https://github.com/jprichardson/node-jsonfile/pull/128))
18
- - Refactor internals ([#128](https://github.com/jprichardson/node-jsonfile/pull/128))
19
-
20
- 5.0.0 / 2018-09-08
21
- ------------------
22
-
23
- - **BREAKING:** Drop Node 4 support
24
- - **BREAKING:** If no callback is passed to an asynchronous method, a promise is now returned ([#109](https://github.com/jprichardson/node-jsonfile/pull/109))
25
- - Cleanup docs
26
-
27
- 4.0.0 / 2017-07-12
28
- ------------------
29
-
30
- - **BREAKING:** Remove global `spaces` option.
31
- - **BREAKING:** Drop support for Node 0.10, 0.12, and io.js.
32
- - Remove undocumented `passParsingErrors` option.
33
- - Added `EOL` override option to `writeFile` when using `spaces`. [#89]
34
-
35
- 3.0.1 / 2017-07-05
36
- ------------------
37
-
38
- - Fixed bug in `writeFile` when there was a serialization error & no callback was passed. In previous versions, an empty file would be written; now no file is written.
39
-
40
- 3.0.0 / 2017-04-25
41
- ------------------
42
-
43
- - Changed behavior of `throws` option for `readFileSync`; now does not throw filesystem errors when `throws` is `false`
44
-
45
- 2.4.0 / 2016-09-15
46
- ------------------
47
- ### Changed
48
- - added optional support for `graceful-fs` [#62]
49
-
50
- 2.3.1 / 2016-05-13
51
- ------------------
52
- - fix to support BOM. [#45][#45]
53
-
54
- 2.3.0 / 2016-04-16
55
- ------------------
56
- - add `throws` to `readFile()`. See [#39][#39]
57
- - add support for any arbitrary `fs` module. Useful with [mock-fs](https://www.npmjs.com/package/mock-fs)
58
-
59
- 2.2.3 / 2015-10-14
60
- ------------------
61
- - include file name in parse error. See: https://github.com/jprichardson/node-jsonfile/pull/34
62
-
63
- 2.2.2 / 2015-09-16
64
- ------------------
65
- - split out tests into separate files
66
- - fixed `throws` when set to `true` in `readFileSync()`. See: https://github.com/jprichardson/node-jsonfile/pull/33
67
-
68
- 2.2.1 / 2015-06-25
69
- ------------------
70
- - fixed regression when passing in string as encoding for options in `writeFile()` and `writeFileSync()`. See: https://github.com/jprichardson/node-jsonfile/issues/28
71
-
72
- 2.2.0 / 2015-06-25
73
- ------------------
74
- - added `options.spaces` to `writeFile()` and `writeFileSync()`
75
-
76
- 2.1.2 / 2015-06-22
77
- ------------------
78
- - fixed if passed `readFileSync(file, 'utf8')`. See: https://github.com/jprichardson/node-jsonfile/issues/25
79
-
80
- 2.1.1 / 2015-06-19
81
- ------------------
82
- - fixed regressions if `null` is passed for options. See: https://github.com/jprichardson/node-jsonfile/issues/24
83
-
84
- 2.1.0 / 2015-06-19
85
- ------------------
86
- - cleanup: JavaScript Standard Style, rename files, dropped terst for assert
87
- - methods now support JSON revivers/replacers
88
-
89
- 2.0.1 / 2015-05-24
90
- ------------------
91
- - update license attribute https://github.com/jprichardson/node-jsonfile/pull/21
92
-
93
- 2.0.0 / 2014-07-28
94
- ------------------
95
- * added `\n` to end of file on write. [#14](https://github.com/jprichardson/node-jsonfile/pull/14)
96
- * added `options.throws` to `readFileSync()`
97
- * dropped support for Node v0.8
98
-
99
- 1.2.0 / 2014-06-29
100
- ------------------
101
- * removed semicolons
102
- * bugfix: passed `options` to `fs.readFile` and `fs.readFileSync`. This technically changes behavior, but
103
- changes it according to docs. [#12][#12]
104
-
105
- 1.1.1 / 2013-11-11
106
- ------------------
107
- * fixed catching of callback bug (ffissore / #5)
108
-
109
- 1.1.0 / 2013-10-11
110
- ------------------
111
- * added `options` param to methods, (seanodell / #4)
112
-
113
- 1.0.1 / 2013-09-05
114
- ------------------
115
- * removed `homepage` field from package.json to remove NPM warning
116
-
117
- 1.0.0 / 2013-06-28
118
- ------------------
119
- * added `.npmignore`, #1
120
- * changed spacing default from `4` to `2` to follow Node conventions
121
-
122
- 0.0.1 / 2012-09-10
123
- ------------------
124
- * Initial release.
125
-
126
- [#89]: https://github.com/jprichardson/node-jsonfile/pull/89
127
- [#45]: https://github.com/jprichardson/node-jsonfile/issues/45 "Reading of UTF8-encoded (w/ BOM) files fails"
128
- [#44]: https://github.com/jprichardson/node-jsonfile/issues/44 "Extra characters in written file"
129
- [#43]: https://github.com/jprichardson/node-jsonfile/issues/43 "Prettyfy json when written to file"
130
- [#42]: https://github.com/jprichardson/node-jsonfile/pull/42 "Moved fs.readFileSync within the try/catch"
131
- [#41]: https://github.com/jprichardson/node-jsonfile/issues/41 "Linux: Hidden file not working"
132
- [#40]: https://github.com/jprichardson/node-jsonfile/issues/40 "autocreate folder doesn't work from Path-value"
133
- [#39]: https://github.com/jprichardson/node-jsonfile/pull/39 "Add `throws` option for readFile (async)"
134
- [#38]: https://github.com/jprichardson/node-jsonfile/pull/38 "Update README.md writeFile[Sync] signature"
135
- [#37]: https://github.com/jprichardson/node-jsonfile/pull/37 "support append file"
136
- [#36]: https://github.com/jprichardson/node-jsonfile/pull/36 "Add typescript definition file."
137
- [#35]: https://github.com/jprichardson/node-jsonfile/pull/35 "Add typescript definition file."
138
- [#34]: https://github.com/jprichardson/node-jsonfile/pull/34 "readFile JSON parse error includes filename"
139
- [#33]: https://github.com/jprichardson/node-jsonfile/pull/33 "fix throw->throws typo in readFileSync()"
140
- [#32]: https://github.com/jprichardson/node-jsonfile/issues/32 "readFile & readFileSync can possible have strip-comments as an option?"
141
- [#31]: https://github.com/jprichardson/node-jsonfile/pull/31 "[Modify] Support string include is unicode escape string"
142
- [#30]: https://github.com/jprichardson/node-jsonfile/issues/30 "How to use Jsonfile package in Meteor.js App?"
143
- [#29]: https://github.com/jprichardson/node-jsonfile/issues/29 "writefile callback if no error?"
144
- [#28]: https://github.com/jprichardson/node-jsonfile/issues/28 "writeFile options argument broken "
145
- [#27]: https://github.com/jprichardson/node-jsonfile/pull/27 "Use svg instead of png to get better image quality"
146
- [#26]: https://github.com/jprichardson/node-jsonfile/issues/26 "Breaking change to fs-extra"
147
- [#25]: https://github.com/jprichardson/node-jsonfile/issues/25 "support string encoding param for read methods"
148
- [#24]: https://github.com/jprichardson/node-jsonfile/issues/24 "readFile: Passing in null options with a callback throws an error"
149
- [#23]: https://github.com/jprichardson/node-jsonfile/pull/23 "Add appendFile and appendFileSync"
150
- [#22]: https://github.com/jprichardson/node-jsonfile/issues/22 "Default value for spaces in readme.md is outdated"
151
- [#21]: https://github.com/jprichardson/node-jsonfile/pull/21 "Update license attribute"
152
- [#20]: https://github.com/jprichardson/node-jsonfile/issues/20 "Add simple caching functionallity"
153
- [#19]: https://github.com/jprichardson/node-jsonfile/pull/19 "Add appendFileSync method"
154
- [#18]: https://github.com/jprichardson/node-jsonfile/issues/18 "Add updateFile and updateFileSync methods"
155
- [#17]: https://github.com/jprichardson/node-jsonfile/issues/17 "seem read & write sync has sequentially problem"
156
- [#16]: https://github.com/jprichardson/node-jsonfile/pull/16 "export spaces defaulted to null"
157
- [#15]: https://github.com/jprichardson/node-jsonfile/issues/15 "`jsonfile.spaces` should default to `null`"
158
- [#14]: https://github.com/jprichardson/node-jsonfile/pull/14 "Add EOL at EOF"
159
- [#13]: https://github.com/jprichardson/node-jsonfile/issues/13 "Add a final newline"
160
- [#12]: https://github.com/jprichardson/node-jsonfile/issues/12 "readFile doesn't accept options"
161
- [#11]: https://github.com/jprichardson/node-jsonfile/pull/11 "Added try,catch to readFileSync"
162
- [#10]: https://github.com/jprichardson/node-jsonfile/issues/10 "No output or error from writeFile"
163
- [#9]: https://github.com/jprichardson/node-jsonfile/pull/9 "Change 'js' to 'jf' in example."
164
- [#8]: https://github.com/jprichardson/node-jsonfile/pull/8 "Updated forgotten module.exports to me."
165
- [#7]: https://github.com/jprichardson/node-jsonfile/pull/7 "Add file name in error message"
166
- [#6]: https://github.com/jprichardson/node-jsonfile/pull/6 "Use graceful-fs when possible"
167
- [#5]: https://github.com/jprichardson/node-jsonfile/pull/5 "Jsonfile doesn't behave nicely when used inside a test suite."
168
- [#4]: https://github.com/jprichardson/node-jsonfile/pull/4 "Added options parameter to writeFile and writeFileSync"
169
- [#3]: https://github.com/jprichardson/node-jsonfile/issues/3 "test2"
170
- [#2]: https://github.com/jprichardson/node-jsonfile/issues/2 "homepage field must be a string url. Deleted."
171
- [#1]: https://github.com/jprichardson/node-jsonfile/pull/1 "adding an `.npmignore` file"