@runwayml/sdk 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/internal/to-file.d.mts +1 -1
- package/internal/to-file.d.ts +1 -1
- package/internal/to-file.js +1 -1
- package/internal/to-file.mjs +1 -1
- package/package.json +1 -1
- package/resources/image-to-video.d.mts +3 -2
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +3 -2
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +5 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +5 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/src/internal/to-file.ts +1 -1
- package/src/resources/image-to-video.ts +3 -2
- package/src/resources/text-to-image.ts +9 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.1.0 (2025-10-08)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.0.0...v3.1.0](https://github.com/runwayml/sdk-node/compare/v3.0.0...v3.1.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** Additional i2v durations ([af836ea](https://github.com/runwayml/sdk-node/commit/af836ea43411550336a7e70fd99f3174a44acf5e))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **internal:** use npm pack for build uploads ([4c6267b](https://github.com/runwayml/sdk-node/commit/4c6267b836a822dd7951f71253769485a93a9289))
|
|
15
|
+
* **jsdoc:** fix [@link](https://github.com/link) annotations to refer only to parts of the package‘s public interface ([62fea83](https://github.com/runwayml/sdk-node/commit/62fea835ed07e4883d38b892445053a232460dd6))
|
|
16
|
+
|
|
3
17
|
## 3.0.0 (2025-10-02)
|
|
4
18
|
|
|
5
19
|
Full Changelog: [v2.11.0...v3.0.0](https://github.com/runwayml/sdk-node/compare/v2.11.0...v3.0.0)
|
package/internal/to-file.d.mts
CHANGED
|
@@ -33,7 +33,7 @@ export interface ResponseLike {
|
|
|
33
33
|
export type ToFileInput = FileLike | ResponseLike | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
|
|
34
34
|
/**
|
|
35
35
|
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
36
|
-
* @param value the raw content of the file.
|
|
36
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
|
|
37
37
|
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
38
38
|
* @param {Object=} options additional properties
|
|
39
39
|
* @param {string=} options.type the MIME type of the content
|
package/internal/to-file.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface ResponseLike {
|
|
|
33
33
|
export type ToFileInput = FileLike | ResponseLike | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
|
|
34
34
|
/**
|
|
35
35
|
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
36
|
-
* @param value the raw content of the file.
|
|
36
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
|
|
37
37
|
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
38
38
|
* @param {Object=} options additional properties
|
|
39
39
|
* @param {string=} options.type the MIME type of the content
|
package/internal/to-file.js
CHANGED
|
@@ -27,7 +27,7 @@ const isResponseLike = (value) => value != null &&
|
|
|
27
27
|
typeof value.blob === 'function';
|
|
28
28
|
/**
|
|
29
29
|
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
30
|
-
* @param value the raw content of the file.
|
|
30
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
|
|
31
31
|
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
32
32
|
* @param {Object=} options additional properties
|
|
33
33
|
* @param {string=} options.type the MIME type of the content
|
package/internal/to-file.mjs
CHANGED
|
@@ -24,7 +24,7 @@ const isResponseLike = (value) => value != null &&
|
|
|
24
24
|
typeof value.blob === 'function';
|
|
25
25
|
/**
|
|
26
26
|
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
27
|
-
* @param value the raw content of the file.
|
|
27
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
|
|
28
28
|
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
29
29
|
* @param {Object=} options additional properties
|
|
30
30
|
* @param {string=} options.type the MIME type of the content
|
package/package.json
CHANGED
|
@@ -57,9 +57,10 @@ export interface ImageToVideoCreateParams {
|
|
|
57
57
|
contentModeration?: ImageToVideoCreateParams.ContentModeration;
|
|
58
58
|
/**
|
|
59
59
|
* The number of seconds of duration for the output video. `veo3` requires a
|
|
60
|
-
* duration of 8.
|
|
60
|
+
* duration of 8. `gen3a_turbo` requires a duration of 5 or 10. gen4_turbo must
|
|
61
|
+
* specify a duration of 2-10 seconds.
|
|
61
62
|
*/
|
|
62
|
-
duration?: 5 | 8 | 10;
|
|
63
|
+
duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
63
64
|
/**
|
|
64
65
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
65
66
|
* should describe in detail what should appear in the output.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.d.mts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ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IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IAE5G;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC,iBAAiB,CAAC;IAE/D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;IAE9C;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,WAAW;QAC1B;;;;;;WAMG;QACH,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;QAE3B;;;WAGG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;;;;OAKG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -57,9 +57,10 @@ export interface ImageToVideoCreateParams {
|
|
|
57
57
|
contentModeration?: ImageToVideoCreateParams.ContentModeration;
|
|
58
58
|
/**
|
|
59
59
|
* The number of seconds of duration for the output video. `veo3` requires a
|
|
60
|
-
* duration of 8.
|
|
60
|
+
* duration of 8. `gen3a_turbo` requires a duration of 5 or 10. gen4_turbo must
|
|
61
|
+
* specify a duration of 2-10 seconds.
|
|
61
62
|
*/
|
|
62
|
-
duration?: 5 | 8 | 10;
|
|
63
|
+
duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
63
64
|
/**
|
|
64
65
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
65
66
|
* should describe in detail what should appear in the output.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.d.ts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,YAAY,GAAG,aAAa,GAAG,MAAM,CAAC;IAE7C;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC;IAElE;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IAE5G;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC,iBAAiB,CAAC;IAE/D
|
|
1
|
+
{"version":3,"file":"image-to-video.d.ts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;A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184`
|
|
55
55
|
* - `1536:672`
|
|
56
|
+
* - `832x1248`
|
|
57
|
+
* - `1248x832`
|
|
58
|
+
* - `896x1152`
|
|
59
|
+
* - `1152x896`
|
|
56
60
|
*/
|
|
57
|
-
ratio: '1920:1080' | '1080:1920' | '1024:1024' | '1360:768' | '1080:1080' | '1168:880' | '1440:1080' | '1080:1440' | '1808:768' | '2112:912' | '1280:720' | '720:1280' | '720:720' | '960:720' | '720:960' | '1680:720' | '1344:768' | '768:1344' | '1184:864' | '864:1184' | '1536:672';
|
|
61
|
+
ratio: '1920:1080' | '1080:1920' | '1024:1024' | '1360:768' | '1080:1080' | '1168:880' | '1440:1080' | '1080:1440' | '1808:768' | '2112:912' | '1280:720' | '720:1280' | '720:720' | '960:720' | '720:960' | '1680:720' | '1344:768' | '768:1344' | '1184:864' | '864:1184' | '1536:672' | '832x1248' | '1248x832' | '896x1152' | '1152x896';
|
|
58
62
|
/**
|
|
59
63
|
* Settings that affect the behavior of the content moderation system.
|
|
60
64
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-image.d.mts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,kBAAkB,GAAG,YAAY,GAAG,kBAAkB,CAAC;IAE9D;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB
|
|
1
|
+
{"version":3,"file":"text-to-image.d.mts","sourceR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MAAM,CAAC;QAEZ;;;;;WAKG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -53,8 +53,12 @@ export interface TextToImageCreateParams {
|
|
|
53
53
|
* - `1184:864`
|
|
54
54
|
* - `864:1184`
|
|
55
55
|
* - `1536:672`
|
|
56
|
+
* - `832x1248`
|
|
57
|
+
* - `1248x832`
|
|
58
|
+
* - `896x1152`
|
|
59
|
+
* - `1152x896`
|
|
56
60
|
*/
|
|
57
|
-
ratio: '1920:1080' | '1080:1920' | '1024:1024' | '1360:768' | '1080:1080' | '1168:880' | '1440:1080' | '1080:1440' | '1808:768' | '2112:912' | '1280:720' | '720:1280' | '720:720' | '960:720' | '720:960' | '1680:720' | '1344:768' | '768:1344' | '1184:864' | '864:1184' | '1536:672';
|
|
61
|
+
ratio: '1920:1080' | '1080:1920' | '1024:1024' | '1360:768' | '1080:1080' | '1168:880' | '1440:1080' | '1080:1440' | '1808:768' | '2112:912' | '1280:720' | '720:1280' | '720:720' | '960:720' | '720:960' | '1680:720' | '1344:768' | '768:1344' | '1184:864' | '864:1184' | '1536:672' | '832x1248' | '1248x832' | '896x1152' | '1152x896';
|
|
58
62
|
/**
|
|
59
63
|
* Settings that affect the behavior of the content moderation system.
|
|
60
64
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-image.d.ts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,kBAAkB,GAAG,YAAY,GAAG,kBAAkB,CAAC;IAE9D;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB
|
|
1
|
+
{"version":3,"file":"text-to-image.d.ts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,kBAAkB,GAAG,YAAY,GAAG,kBAAkB,CAAC;IAE9D;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,KAAK,EACD,WAAW,GACX,WAAW,GACX,WAAW,GACX,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;IAEf;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAC,iBAAiB,CAAC;IAE9D;;;;;OAKG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAC;IAEhE;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,uBAAuB,CAAC;IACvC;;;;;OAKG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;IAED,UAAiB,cAAc;QAC7B;;;;WAIG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;;;;WAKG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
package/src/internal/to-file.ts
CHANGED
|
@@ -73,7 +73,7 @@ export type ToFileInput =
|
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
|
|
76
|
-
* @param value the raw content of the file.
|
|
76
|
+
* @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
|
|
77
77
|
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
|
|
78
78
|
* @param {Object=} options additional properties
|
|
79
79
|
* @param {string=} options.type the MIME type of the content
|
|
@@ -73,9 +73,10 @@ export interface ImageToVideoCreateParams {
|
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* The number of seconds of duration for the output video. `veo3` requires a
|
|
76
|
-
* duration of 8.
|
|
76
|
+
* duration of 8. `gen3a_turbo` requires a duration of 5 or 10. gen4_turbo must
|
|
77
|
+
* specify a duration of 2-10 seconds.
|
|
77
78
|
*/
|
|
78
|
-
duration?: 5 | 8 | 10;
|
|
79
|
+
duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
82
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
@@ -67,6 +67,10 @@ export interface TextToImageCreateParams {
|
|
|
67
67
|
* - `1184:864`
|
|
68
68
|
* - `864:1184`
|
|
69
69
|
* - `1536:672`
|
|
70
|
+
* - `832x1248`
|
|
71
|
+
* - `1248x832`
|
|
72
|
+
* - `896x1152`
|
|
73
|
+
* - `1152x896`
|
|
70
74
|
*/
|
|
71
75
|
ratio:
|
|
72
76
|
| '1920:1080'
|
|
@@ -89,7 +93,11 @@ export interface TextToImageCreateParams {
|
|
|
89
93
|
| '768:1344'
|
|
90
94
|
| '1184:864'
|
|
91
95
|
| '864:1184'
|
|
92
|
-
| '1536:672'
|
|
96
|
+
| '1536:672'
|
|
97
|
+
| '832x1248'
|
|
98
|
+
| '1248x832'
|
|
99
|
+
| '896x1152'
|
|
100
|
+
| '1152x896';
|
|
93
101
|
|
|
94
102
|
/**
|
|
95
103
|
* Settings that affect the behavior of the content moderation system.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.1.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.1.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|