firebase-functions 6.6.0 → 7.0.0-rc.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 (156) hide show
  1. package/lib/_virtual/rolldown_runtime.js +34 -0
  2. package/lib/bin/firebase-functions.js +78 -103
  3. package/lib/common/app.js +35 -55
  4. package/lib/common/change.js +54 -75
  5. package/lib/common/config.js +41 -41
  6. package/lib/common/debug.js +23 -47
  7. package/lib/common/encoding.js +59 -82
  8. package/lib/common/onInit.js +26 -28
  9. package/lib/common/options.js +22 -42
  10. package/lib/common/params.d.ts +6 -6
  11. package/lib/common/params.js +0 -23
  12. package/lib/common/providers/database.js +270 -300
  13. package/lib/common/providers/firestore.js +66 -92
  14. package/lib/common/providers/https.d.ts +0 -1
  15. package/lib/common/providers/https.js +537 -539
  16. package/lib/common/providers/identity.js +393 -444
  17. package/lib/common/providers/tasks.js +64 -98
  18. package/lib/common/timezone.js +544 -542
  19. package/lib/common/trace.d.ts +0 -1
  20. package/lib/common/trace.js +63 -55
  21. package/lib/common/utilities/assertions.d.ts +11 -0
  22. package/lib/common/utilities/assertions.js +18 -0
  23. package/lib/common/utilities/encoder.js +20 -37
  24. package/lib/common/utilities/path-pattern.js +106 -132
  25. package/lib/common/utilities/path.js +28 -27
  26. package/lib/common/utilities/utils.js +23 -45
  27. package/lib/esm/_virtual/rolldown_runtime.mjs +16 -0
  28. package/lib/esm/bin/firebase-functions.mjs +91 -0
  29. package/lib/esm/common/app.mjs +39 -0
  30. package/lib/esm/common/change.mjs +57 -0
  31. package/lib/esm/common/config.mjs +45 -0
  32. package/lib/esm/common/debug.mjs +28 -0
  33. package/lib/esm/common/encoding.mjs +69 -0
  34. package/lib/esm/common/onInit.mjs +33 -0
  35. package/lib/esm/common/options.mjs +22 -0
  36. package/lib/esm/common/params.mjs +1 -0
  37. package/lib/esm/common/providers/database.mjs +269 -0
  38. package/lib/esm/common/providers/firestore.mjs +78 -0
  39. package/lib/esm/common/providers/https.mjs +573 -0
  40. package/lib/esm/common/providers/identity.mjs +428 -0
  41. package/lib/esm/common/providers/tasks.mjs +67 -0
  42. package/lib/esm/common/timezone.mjs +544 -0
  43. package/lib/esm/common/trace.mjs +73 -0
  44. package/lib/esm/common/utilities/assertions.mjs +17 -0
  45. package/lib/esm/common/utilities/encoder.mjs +21 -0
  46. package/lib/esm/common/utilities/path-pattern.mjs +116 -0
  47. package/lib/esm/common/utilities/path.mjs +35 -0
  48. package/lib/esm/common/utilities/utils.mjs +29 -0
  49. package/lib/esm/function-configuration.mjs +1 -0
  50. package/lib/esm/logger/common.mjs +23 -0
  51. package/lib/esm/logger/compat.mjs +25 -0
  52. package/lib/esm/logger/index.mjs +131 -0
  53. package/lib/esm/params/index.mjs +160 -0
  54. package/lib/esm/params/types.mjs +400 -0
  55. package/lib/esm/runtime/loader.mjs +132 -0
  56. package/lib/esm/runtime/manifest.mjs +134 -0
  57. package/lib/esm/types/global.d.mjs +1 -0
  58. package/lib/esm/v1/cloud-functions.mjs +206 -0
  59. package/lib/esm/v1/config.mjs +14 -0
  60. package/lib/esm/v1/function-builder.mjs +252 -0
  61. package/lib/esm/v1/function-configuration.mjs +72 -0
  62. package/lib/esm/v1/index.mjs +27 -0
  63. package/lib/esm/v1/providers/analytics.mjs +212 -0
  64. package/lib/esm/v1/providers/auth.mjs +156 -0
  65. package/lib/esm/v1/providers/database.mjs +243 -0
  66. package/lib/esm/v1/providers/firestore.mjs +131 -0
  67. package/lib/esm/v1/providers/https.mjs +82 -0
  68. package/lib/esm/v1/providers/pubsub.mjs +175 -0
  69. package/lib/esm/v1/providers/remoteConfig.mjs +64 -0
  70. package/lib/esm/v1/providers/storage.mjs +163 -0
  71. package/lib/esm/v1/providers/tasks.mjs +63 -0
  72. package/lib/esm/v1/providers/testLab.mjs +94 -0
  73. package/lib/esm/v2/core.mjs +4 -0
  74. package/lib/esm/v2/index.mjs +28 -0
  75. package/lib/esm/v2/options.mjs +102 -0
  76. package/lib/esm/v2/providers/alerts/alerts.mjs +85 -0
  77. package/lib/esm/v2/providers/alerts/appDistribution.mjs +75 -0
  78. package/lib/esm/v2/providers/alerts/billing.mjs +51 -0
  79. package/lib/esm/v2/providers/alerts/crashlytics.mjs +122 -0
  80. package/lib/esm/v2/providers/alerts/index.mjs +22 -0
  81. package/lib/esm/v2/providers/alerts/performance.mjs +66 -0
  82. package/lib/esm/v2/providers/database.mjs +197 -0
  83. package/lib/esm/v2/providers/dataconnect.mjs +130 -0
  84. package/lib/esm/v2/providers/eventarc.mjs +51 -0
  85. package/lib/esm/v2/providers/firestore.mjs +294 -0
  86. package/lib/esm/v2/providers/https.mjs +210 -0
  87. package/lib/esm/v2/providers/identity.mjs +103 -0
  88. package/lib/esm/v2/providers/pubsub.mjs +148 -0
  89. package/lib/esm/v2/providers/remoteConfig.mjs +52 -0
  90. package/lib/esm/v2/providers/scheduler.mjs +84 -0
  91. package/lib/esm/v2/providers/storage.mjs +155 -0
  92. package/lib/esm/v2/providers/tasks.mjs +65 -0
  93. package/lib/esm/v2/providers/testLab.mjs +53 -0
  94. package/lib/esm/v2/trace.mjs +20 -0
  95. package/lib/function-configuration.d.ts +0 -0
  96. package/lib/function-configuration.js +0 -0
  97. package/lib/logger/common.js +21 -41
  98. package/lib/logger/compat.js +18 -33
  99. package/lib/logger/index.js +119 -130
  100. package/lib/params/index.d.ts +4 -2
  101. package/lib/params/index.js +150 -144
  102. package/lib/params/types.js +389 -423
  103. package/lib/runtime/loader.js +114 -148
  104. package/lib/runtime/manifest.js +106 -126
  105. package/lib/types/global.d.js +0 -0
  106. package/lib/v1/cloud-functions.d.ts +2 -2
  107. package/lib/v1/cloud-functions.js +193 -241
  108. package/lib/v1/config.d.ts +4 -7
  109. package/lib/v1/config.js +13 -75
  110. package/lib/v1/function-builder.js +239 -368
  111. package/lib/v1/function-configuration.js +70 -63
  112. package/lib/v1/index.js +118 -73
  113. package/lib/v1/providers/analytics.js +188 -235
  114. package/lib/v1/providers/auth.d.ts +2 -1
  115. package/lib/v1/providers/auth.js +159 -164
  116. package/lib/v1/providers/database.js +237 -242
  117. package/lib/v1/providers/firestore.js +131 -130
  118. package/lib/v1/providers/https.d.ts +2 -1
  119. package/lib/v1/providers/https.js +79 -86
  120. package/lib/v1/providers/pubsub.js +175 -172
  121. package/lib/v1/providers/remoteConfig.js +64 -68
  122. package/lib/v1/providers/storage.js +161 -163
  123. package/lib/v1/providers/tasks.d.ts +1 -1
  124. package/lib/v1/providers/tasks.js +65 -80
  125. package/lib/v1/providers/testLab.js +94 -94
  126. package/lib/v2/core.d.ts +1 -1
  127. package/lib/v2/core.js +5 -32
  128. package/lib/v2/index.d.ts +6 -3
  129. package/lib/v2/index.js +123 -75
  130. package/lib/v2/options.js +88 -114
  131. package/lib/v2/providers/alerts/alerts.js +76 -95
  132. package/lib/v2/providers/alerts/appDistribution.js +73 -78
  133. package/lib/v2/providers/alerts/billing.js +49 -53
  134. package/lib/v2/providers/alerts/crashlytics.js +110 -102
  135. package/lib/v2/providers/alerts/index.js +56 -53
  136. package/lib/v2/providers/alerts/performance.js +64 -74
  137. package/lib/v2/providers/database.js +177 -180
  138. package/lib/v2/providers/dataconnect.d.ts +95 -0
  139. package/lib/v2/providers/dataconnect.js +137 -0
  140. package/lib/v2/providers/eventarc.js +55 -77
  141. package/lib/v2/providers/firestore.js +262 -260
  142. package/lib/v2/providers/https.d.ts +3 -2
  143. package/lib/v2/providers/https.js +210 -247
  144. package/lib/v2/providers/identity.d.ts +2 -1
  145. package/lib/v2/providers/identity.js +96 -105
  146. package/lib/v2/providers/pubsub.js +149 -167
  147. package/lib/v2/providers/remoteConfig.js +54 -63
  148. package/lib/v2/providers/scheduler.js +84 -96
  149. package/lib/v2/providers/storage.js +147 -162
  150. package/lib/v2/providers/tasks.d.ts +1 -1
  151. package/lib/v2/providers/tasks.js +68 -95
  152. package/lib/v2/providers/testLab.js +55 -64
  153. package/lib/v2/trace.js +18 -19
  154. package/package.json +290 -226
  155. package/protos/compiledFirestore.mjs +3512 -0
  156. package/protos/update.sh +28 -7
@@ -1,96 +1,73 @@
1
- "use strict";
2
- // The MIT License (MIT)
3
- //
4
- // Copyright (c) 2021 Firebase
5
- //
6
- // Permission is hereby granted, free of charge, to any person obtaining a copy
7
- // of this software and associated documentation files (the "Software"), to deal
8
- // in the Software without restriction, including without limitation the rights
9
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- // copies of the Software, and to permit persons to whom the Software is
11
- // furnished to do so, subject to the following conditions:
12
- //
13
- // The above copyright notice and this permission notice shall be included in all
14
- // copies or substantial portions of the Software.
15
- //
16
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- // SOFTWARE.
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.convertInvoker = exports.serviceAccountFromShorthand = exports.convertIfPresent = exports.copyIfPresent = exports.durationFromSeconds = void 0;
25
- const params_1 = require("../params");
1
+ const require_params_types = require('../params/types.js');
2
+ require('../params/index.js');
3
+
4
+ //#region src/common/encoding.ts
26
5
  /** Get a google.protobuf.Duration for a number of seconds. */
27
6
  function durationFromSeconds(s) {
28
- return `${s}s`;
7
+ return `${s}s`;
29
8
  }
30
- exports.durationFromSeconds = durationFromSeconds;
31
9
  /**
32
- * Utility function to help copy fields from type A to B.
33
- * As a safety net, catches typos or fields that aren't named the same
34
- * in A and B, but cannot verify that both Src and Dest have the same type for the same field.
35
- */
10
+ * Utility function to help copy fields from type A to B.
11
+ * As a safety net, catches typos or fields that aren't named the same
12
+ * in A and B, but cannot verify that both Src and Dest have the same type for the same field.
13
+ */
36
14
  function copyIfPresent(dest, src, ...fields) {
37
- if (!src) {
38
- return;
39
- }
40
- for (const field of fields) {
41
- if (!Object.prototype.hasOwnProperty.call(src, field)) {
42
- continue;
43
- }
44
- dest[field] = src[field];
45
- }
15
+ if (!src) {
16
+ return;
17
+ }
18
+ for (const field of fields) {
19
+ if (!Object.prototype.hasOwnProperty.call(src, field)) {
20
+ continue;
21
+ }
22
+ dest[field] = src[field];
23
+ }
46
24
  }
47
- exports.copyIfPresent = copyIfPresent;
48
25
  function convertIfPresent(dest, src, destField, srcField, converter = (from) => {
49
- return from;
26
+ return from;
50
27
  }) {
51
- if (!src) {
52
- return;
53
- }
54
- if (!Object.prototype.hasOwnProperty.call(src, srcField)) {
55
- return;
56
- }
57
- dest[destField] = converter(src[srcField]);
28
+ if (!src) {
29
+ return;
30
+ }
31
+ if (!Object.prototype.hasOwnProperty.call(src, srcField)) {
32
+ return;
33
+ }
34
+ dest[destField] = converter(src[srcField]);
58
35
  }
59
- exports.convertIfPresent = convertIfPresent;
60
36
  function serviceAccountFromShorthand(serviceAccount) {
61
- if (serviceAccount === "default") {
62
- return null;
63
- }
64
- else if (serviceAccount instanceof params_1.Expression) {
65
- return serviceAccount;
66
- }
67
- else if (serviceAccount.endsWith("@")) {
68
- if (!process.env.GCLOUD_PROJECT) {
69
- throw new Error(`Unable to determine email for service account '${serviceAccount}' because process.env.GCLOUD_PROJECT is not set.`);
70
- }
71
- return `${serviceAccount}${process.env.GCLOUD_PROJECT}.iam.gserviceaccount.com`;
72
- }
73
- else if (serviceAccount.includes("@")) {
74
- return serviceAccount;
75
- }
76
- else {
77
- throw new Error(`Invalid option for serviceAccount: '${serviceAccount}'. Valid options are 'default', a service account email, or '{serviceAccountName}@'`);
78
- }
37
+ if (serviceAccount === "default") {
38
+ return null;
39
+ } else if (serviceAccount instanceof require_params_types.Expression) {
40
+ return serviceAccount;
41
+ } else if (serviceAccount.endsWith("@")) {
42
+ if (!process.env.GCLOUD_PROJECT) {
43
+ throw new Error(`Unable to determine email for service account '${serviceAccount}' because process.env.GCLOUD_PROJECT is not set.`);
44
+ }
45
+ return `${serviceAccount}${process.env.GCLOUD_PROJECT}.iam.gserviceaccount.com`;
46
+ } else if (serviceAccount.includes("@")) {
47
+ return serviceAccount;
48
+ } else {
49
+ throw new Error(`Invalid option for serviceAccount: '${serviceAccount}'. Valid options are 'default', a service account email, or '{serviceAccountName}@'`);
50
+ }
79
51
  }
80
- exports.serviceAccountFromShorthand = serviceAccountFromShorthand;
81
52
  function convertInvoker(invoker) {
82
- if (typeof invoker === "string") {
83
- invoker = [invoker];
84
- }
85
- if (invoker.length === 0) {
86
- throw new Error("Invalid option for invoker: Must be a non-empty array.");
87
- }
88
- if (invoker.find((inv) => inv.length === 0)) {
89
- throw new Error("Invalid option for invoker: Must be a non-empty string.");
90
- }
91
- if (invoker.length > 1 && invoker.find((inv) => inv === "public" || inv === "private")) {
92
- throw new Error("Invalid option for invoker: Cannot have 'public' or 'private' in an array of service accounts.");
93
- }
94
- return invoker;
53
+ if (typeof invoker === "string") {
54
+ invoker = [invoker];
55
+ }
56
+ if (invoker.length === 0) {
57
+ throw new Error("Invalid option for invoker: Must be a non-empty array.");
58
+ }
59
+ if (invoker.find((inv) => inv.length === 0)) {
60
+ throw new Error("Invalid option for invoker: Must be a non-empty string.");
61
+ }
62
+ if (invoker.length > 1 && invoker.find((inv) => inv === "public" || inv === "private")) {
63
+ throw new Error("Invalid option for invoker: Cannot have 'public' or 'private' in an array of service accounts.");
64
+ }
65
+ return invoker;
95
66
  }
67
+
68
+ //#endregion
69
+ exports.convertIfPresent = convertIfPresent;
96
70
  exports.convertInvoker = convertInvoker;
71
+ exports.copyIfPresent = copyIfPresent;
72
+ exports.durationFromSeconds = durationFromSeconds;
73
+ exports.serviceAccountFromShorthand = serviceAccountFromShorthand;
@@ -1,36 +1,34 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.withInit = exports.onInit = void 0;
4
- const logger = require("../logger");
1
+ const require_logger_index = require('../logger/index.js');
2
+
3
+ //#region src/common/onInit.ts
5
4
  let initCallback = null;
6
5
  let didInit = false;
7
6
  /**
8
- * Registers a callback that should be run when in a production environment
9
- * before executing any functions code.
10
- * Calling this function more than once leads to undefined behavior.
11
- * @param callback initialization callback to be run before any function executes.
12
- */
7
+ * Registers a callback that should be run when in a production environment
8
+ * before executing any functions code.
9
+ * Calling this function more than once leads to undefined behavior.
10
+ * @param callback initialization callback to be run before any function executes.
11
+ */
13
12
  function onInit(callback) {
14
- if (initCallback) {
15
- logger.warn("Setting onInit callback more than once. Only the most recent callback will be called");
16
- }
17
- initCallback = callback;
18
- didInit = false;
13
+ if (initCallback) {
14
+ require_logger_index.warn("Setting onInit callback more than once. Only the most recent callback will be called");
15
+ }
16
+ initCallback = callback;
17
+ didInit = false;
19
18
  }
20
- exports.onInit = onInit;
21
19
  /** @internal */
22
20
  function withInit(func) {
23
- return async (...args) => {
24
- if (!didInit) {
25
- if (initCallback) {
26
- await initCallback();
27
- }
28
- didInit = true;
29
- }
30
- // Note: This cast is actually inaccurate because it may be a promise, but
31
- // it doesn't actually matter because the async function will promisify
32
- // non-promises and forward promises.
33
- return func(...args);
34
- };
21
+ return async (...args) => {
22
+ if (!didInit) {
23
+ if (initCallback) {
24
+ await initCallback();
25
+ }
26
+ didInit = true;
27
+ }
28
+ return func(...args);
29
+ };
35
30
  }
36
- exports.withInit = withInit;
31
+
32
+ //#endregion
33
+ exports.onInit = onInit;
34
+ exports.withInit = withInit;
@@ -1,44 +1,24 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RESET_VALUE = exports.ResetValue = void 0;
4
- // The MIT License (MIT)
5
- //
6
- // Copyright (c) 2022 Firebase
7
- //
8
- // Permission is hereby granted, free of charge, to any person obtaining a copy
9
- // of this software and associated documentation files (the "Software"), to deal
10
- // in the Software without restriction, including without limitation the rights
11
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- // copies of the Software, and to permit persons to whom the Software is
13
- // furnished to do so, subject to the following conditions:
14
- //
15
- // The above copyright notice and this permission notice shall be included in all
16
- // copies or substantial portions of the Software.
17
- //
18
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
- // SOFTWARE.
1
+
2
+ //#region src/common/options.ts
25
3
  /**
26
- * Special configuration type to reset configuration to platform default.
27
- *
28
- * @alpha
29
- */
30
- class ResetValue {
31
- toJSON() {
32
- return null;
33
- }
34
- // eslint-disable-next-line @typescript-eslint/no-empty-function
35
- constructor() { }
36
- static getInstance() {
37
- return new ResetValue();
38
- }
39
- }
40
- exports.ResetValue = ResetValue;
4
+ * Special configuration type to reset configuration to platform default.
5
+ *
6
+ * @alpha
7
+ */
8
+ var ResetValue = class ResetValue {
9
+ toJSON() {
10
+ return null;
11
+ }
12
+ constructor() {}
13
+ static getInstance() {
14
+ return new ResetValue();
15
+ }
16
+ };
41
17
  /**
42
- * Special configuration value to reset configuration to platform default.
43
- */
44
- exports.RESET_VALUE = ResetValue.getInstance();
18
+ * Special configuration value to reset configuration to platform default.
19
+ */
20
+ const RESET_VALUE = ResetValue.getInstance();
21
+
22
+ //#endregion
23
+ exports.RESET_VALUE = RESET_VALUE;
24
+ exports.ResetValue = ResetValue;
@@ -15,13 +15,13 @@ export type NullSafe<S extends null | undefined | string> = S extends null ? nev
15
15
  * A type that extracts parameter name enclosed in bracket as string.
16
16
  * Ignore wildcard matches
17
17
  *
18
- * For example, Extract<"{uid}"> is "uid".
19
- * For example, Extract<"{uid=*}"> is "uid".
20
- * For example, Extract<"{uid=**}"> is "uid".
18
+ * For example, VarName<"{uid}"> is "uid".
19
+ * For example, VarName<"{uid=*}"> is "uid".
20
+ * For example, VarName<"{uid=**}"> is "uid".
21
21
  */
22
- export type Extract<Part extends string> = Part extends `{${infer Param}=**}` ? Param : Part extends `{${infer Param}=*}` ? Param : Part extends `{${infer Param}}` ? Param : never;
22
+ export type VarName<Part extends string> = Part extends `{${infer Param}=**}` ? Param : Part extends `{${infer Param}=*}` ? Param : Part extends `{${infer Param}}` ? Param : never;
23
23
  /**
24
- * A type that maps all parameter capture gropus into keys of a record.
24
+ * A type that maps all parameter capture groups into keys of a record.
25
25
  * For example, ParamsOf<"users/{uid}"> is { uid: string }
26
26
  * ParamsOf<"users/{uid}/logs/{log}"> is { uid: string; log: string }
27
27
  * ParamsOf<"some/static/data"> is {}
@@ -29,5 +29,5 @@ export type Extract<Part extends string> = Part extends `{${infer Param}=**}` ?
29
29
  * For flexibility reasons, ParamsOf<string> is Record<string, string>
30
30
  */
31
31
  export type ParamsOf<PathPattern extends string | Expression<string>> = PathPattern extends Expression<string> ? Record<string, string> : string extends PathPattern ? Record<string, string> : {
32
- [Key in Extract<Split<NullSafe<Exclude<PathPattern, Expression<string>>>, "/">[number]>]: string;
32
+ [Key in VarName<Split<NullSafe<Exclude<PathPattern, Expression<string>>>, "/">[number]>]: string;
33
33
  };
@@ -1,23 +0,0 @@
1
- "use strict";
2
- // The MIT License (MIT)
3
- //
4
- // Copyright (c) 2021 Firebase
5
- //
6
- // Permission is hereby granted, free of charge, to any person obtaining a copy
7
- // of this software and associated documentation files (the "Software"), to deal
8
- // in the Software without restriction, including without limitation the rights
9
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- // copies of the Software, and to permit persons to whom the Software is
11
- // furnished to do so, subject to the following conditions:
12
- //
13
- // The above copyright notice and this permission notice shall be included in all
14
- // copies or substantial portions of the Software.
15
- //
16
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- // SOFTWARE.
23
- Object.defineProperty(exports, "__esModule", { value: true });