dfx 0.118.1 → 0.118.3
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/DiscordGateway/Sharder.d.ts +1 -1
- package/Helpers/ui.d.ts +11 -3
- package/Helpers/ui.d.ts.map +1 -1
- package/Helpers/ui.js +18 -2
- package/Helpers/ui.js.map +1 -1
- package/mjs/Helpers/ui.mjs +14 -0
- package/mjs/Helpers/ui.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/package.json +2 -2
- package/src/Helpers/ui.ts +29 -2
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -10,5 +10,5 @@ export interface Sharder {
|
|
|
10
10
|
export declare const Sharder: import("effect/Context").Tag<Sharder, {
|
|
11
11
|
readonly shards: Effect.Effect<HashSet.HashSet<RunningShard>, never, never>;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const SharderLive: Layer.Layer<Sharder, never, DiscordConfig | import("@effect/platform/HttpClient").HttpClient |
|
|
13
|
+
export declare const SharderLive: Layer.Layer<Sharder, never, DiscordConfig | import("@effect/platform/HttpClient").HttpClient | import("dfx/RateLimit").RateLimitStore | ShardStore | import("./Shard/StateStore").ShardStateStore | import("./DiscordWS").DiscordWSCodec | import("@effect/platform/Socket").WebSocketConstructor>;
|
|
14
14
|
//# sourceMappingURL=Sharder.d.ts.map
|
package/Helpers/ui.d.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import type { ActionRowComponentForModalRequest, ButtonComponentForMessageRequest, ChannelSelectComponentForMessageRequest, ContainerComponentForMessageRequest, FileComponentForMessageRequest, MediaGalleryComponentForMessageRequest, MentionableSelectComponentForMessageRequest, PollCreateRequest, PollMediaCreateRequest, RoleSelectComponentForMessageRequest, SectionComponentForMessageRequest, SeparatorComponentForMessageRequest, StringSelectComponentForMessageRequest, TextDisplayComponentForMessageRequest, TextInputComponentForModalRequest, UserSelectComponentForMessageRequest } from "dfx/types";
|
|
1
|
+
import type { ActionRowComponentForMessageRequest, ActionRowComponentForModalRequest, ButtonComponentForMessageRequest, ChannelSelectComponentForMessageRequest, ContainerComponentForMessageRequest, FileComponentForMessageRequest, MediaGalleryComponentForMessageRequest, MentionableSelectComponentForMessageRequest, PollCreateRequest, PollMediaCreateRequest, RoleSelectComponentForMessageRequest, SectionComponentForMessageRequest, SeparatorComponentForMessageRequest, StringSelectComponentForMessageRequest, TextDisplayComponentForMessageRequest, TextInputComponentForModalRequest, UserSelectComponentForMessageRequest } from "dfx/types";
|
|
2
2
|
import { TextInputStyleTypes } from "dfx/types";
|
|
3
3
|
/**
|
|
4
4
|
* Helper to create an Action Row grid.
|
|
5
5
|
*/
|
|
6
|
-
export declare const grid: (items: ReadonlyArray<ReadonlyArray<
|
|
6
|
+
export declare const grid: (items: ReadonlyArray<ReadonlyArray<ActionRowComponentForMessageRequest["components"][number]>>) => Array<ActionRowComponentForMessageRequest>;
|
|
7
7
|
/**
|
|
8
8
|
* Helper to create a single column of components
|
|
9
9
|
*/
|
|
10
|
-
export declare const singleColumn: (items: Array<
|
|
10
|
+
export declare const singleColumn: (items: Array<ActionRowComponentForMessageRequest["components"][number]>) => Array<ActionRowComponentForMessageRequest>;
|
|
11
|
+
/**
|
|
12
|
+
* Helper to create an Action Row grid.
|
|
13
|
+
*/
|
|
14
|
+
export declare const gridModal: (items: ReadonlyArray<ReadonlyArray<TextInputComponentForModalRequest>>) => Array<ActionRowComponentForModalRequest>;
|
|
15
|
+
/**
|
|
16
|
+
* Helper to create a single column of components
|
|
17
|
+
*/
|
|
18
|
+
export declare const singleColumnModal: (items: ReadonlyArray<TextInputComponentForModalRequest>) => Array<ActionRowComponentForModalRequest>;
|
|
11
19
|
/**
|
|
12
20
|
* Helper to create a button component.
|
|
13
21
|
*/
|
package/Helpers/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/Helpers/ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,gCAAgC,EAChC,uCAAuC,EACvC,mCAAmC,EACnC,8BAA8B,EAC9B,sCAAsC,EACtC,2CAA2C,EAE3C,iBAAiB,EACjB,sBAAsB,EACtB,oCAAoC,EACpC,iCAAiC,EACjC,mCAAmC,EACnC,sCAAsC,EACtC,qCAAqC,EACrC,iCAAiC,EACjC,oCAAoC,EACrC,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,mBAAmB,EAGpB,MAAM,WAAW,CAAA;AAElB;;GAEG;AACH,eAAO,MAAM,IAAI,GACf,OAAO,aAAa,CAAC,aAAa,CAAC,iCAAiC,CAAC,CAAC,KACrE,KAAK,CAAC,iCAAiC,CAMvC,CAAA;AAEH;;GAEG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/Helpers/ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mCAAmC,EACnC,iCAAiC,EACjC,gCAAgC,EAChC,uCAAuC,EACvC,mCAAmC,EACnC,8BAA8B,EAC9B,sCAAsC,EACtC,2CAA2C,EAE3C,iBAAiB,EACjB,sBAAsB,EACtB,oCAAoC,EACpC,iCAAiC,EACjC,mCAAmC,EACnC,sCAAsC,EACtC,qCAAqC,EACrC,iCAAiC,EACjC,oCAAoC,EACrC,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,mBAAmB,EAGpB,MAAM,WAAW,CAAA;AAElB;;GAEG;AACH,eAAO,MAAM,IAAI,GACf,OAAO,aAAa,CAClB,aAAa,CAAC,mCAAmC,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,CACzE,KACA,KAAK,CAAC,mCAAmC,CAMzC,CAAA;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,KAAK,CAAC,mCAAmC,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,KACtE,KAAK,CAAC,mCAAmC,CAIvC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BAAsB,CAAC,CAAA;CACxD,KACA,iBAKD,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,GACvB,SAAS,IAAI,CAAC,sCAAsC,EAAE,MAAM,CAAC,KAC5D,sCAGD,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI,GACf,SAAS,IAAI,CAAC,8BAA8B,EAAE,MAAM,CAAC,KACpD,8BAGD,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GACpB,SAAS,IAAI,CAAC,mCAAmC,EAAE,MAAM,CAAC,KACzD,mCAGD,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,GAClB,SAAS,IAAI,CAAC,iCAAiC,EAAE,MAAM,CAAC,KACvD,iCAGD,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GACpB,SAAS,IAAI,CAAC,mCAAmC,EAAE,MAAM,CAAC,KACzD,mCAGD,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GACtB,SAAS,MAAM,KACd,qCAGD,CAAA"}
|
package/Helpers/ui.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.userSelect = exports.textInput = exports.textDisplay = exports.singleColumn = exports.seperator = exports.select = exports.section = exports.roleSelect = exports.poll = exports.mentionableSelect = exports.mediaGallery = exports.grid = exports.file = exports.container = exports.channelSelect = exports.button = void 0;
|
|
6
|
+
exports.userSelect = exports.textInput = exports.textDisplay = exports.singleColumnModal = exports.singleColumn = exports.seperator = exports.select = exports.section = exports.roleSelect = exports.poll = exports.mentionableSelect = exports.mediaGallery = exports.gridModal = exports.grid = exports.file = exports.container = exports.channelSelect = exports.button = void 0;
|
|
7
7
|
var _types = /*#__PURE__*/require("dfx/types");
|
|
8
8
|
/**
|
|
9
9
|
* Helper to create an Action Row grid.
|
|
@@ -21,9 +21,25 @@ const singleColumn = items => items.map(c => ({
|
|
|
21
21
|
components: [c]
|
|
22
22
|
}));
|
|
23
23
|
/**
|
|
24
|
-
* Helper to create
|
|
24
|
+
* Helper to create an Action Row grid.
|
|
25
25
|
*/
|
|
26
26
|
exports.singleColumn = singleColumn;
|
|
27
|
+
const gridModal = items => items.map(components => ({
|
|
28
|
+
type: _types.MessageComponentTypes.ACTION_ROW,
|
|
29
|
+
components
|
|
30
|
+
}));
|
|
31
|
+
/**
|
|
32
|
+
* Helper to create a single column of components
|
|
33
|
+
*/
|
|
34
|
+
exports.gridModal = gridModal;
|
|
35
|
+
const singleColumnModal = items => items.map(c => ({
|
|
36
|
+
type: _types.MessageComponentTypes.ACTION_ROW,
|
|
37
|
+
components: [c]
|
|
38
|
+
}));
|
|
39
|
+
/**
|
|
40
|
+
* Helper to create a button component.
|
|
41
|
+
*/
|
|
42
|
+
exports.singleColumnModal = singleColumnModal;
|
|
27
43
|
const button = button => ({
|
|
28
44
|
type: _types.MessageComponentTypes.BUTTON,
|
|
29
45
|
style: _types.ButtonStyleTypes.PRIMARY,
|
package/Helpers/ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","names":["_types","require","grid","items","map","components","type","MessageComponentTypes","ACTION_ROW","exports","singleColumn","c","button","BUTTON","style","ButtonStyleTypes","PRIMARY","select","STRING_SELECT","userSelect","USER_SELECT","roleSelect","ROLE_SELECT","mentionableSelect","MENTIONABLE_SELECT","channelSelect","CHANNEL_SELECT","textInput","input","TEXT_INPUT","TextInputStyleTypes","SHORT","poll","answers","poll_media","mediaGallery","options","MEDIA_GALLERY","file","FILE","container","CONTAINER","section","SECTION","seperator","SEPARATOR","textDisplay","content","TEXT_DISPLAY"],"sources":["../src/Helpers/ui.ts"],"sourcesContent":[null],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"ui.js","names":["_types","require","grid","items","map","components","type","MessageComponentTypes","ACTION_ROW","exports","singleColumn","c","gridModal","singleColumnModal","button","BUTTON","style","ButtonStyleTypes","PRIMARY","select","STRING_SELECT","userSelect","USER_SELECT","roleSelect","ROLE_SELECT","mentionableSelect","MENTIONABLE_SELECT","channelSelect","CHANNEL_SELECT","textInput","input","TEXT_INPUT","TextInputStyleTypes","SHORT","poll","answers","poll_media","mediaGallery","options","MEDIA_GALLERY","file","FILE","container","CONTAINER","section","SECTION","seperator","SEPARATOR","textDisplay","content","TEXT_DISPLAY"],"sources":["../src/Helpers/ui.ts"],"sourcesContent":[null],"mappings":";;;;;;AAoBA,IAAAA,MAAA,gBAAAC,OAAA;AAMA;;;AAGO,MAAMC,IAAI,GACfC,KAEC,IAEDA,KAAK,CAACC,GAAG,CACNC,UAAU,KAA2C;EACpDC,IAAI,EAAEC,4BAAqB,CAACC,UAAU;EACtCH;CACD,CAAC,CACH;AAEH;;;AAAAI,OAAA,CAAAP,IAAA,GAAAA,IAAA;AAGO,MAAMQ,YAAY,GACvBP,KAAuE,IAEvEA,KAAK,CAACC,GAAG,CAACO,CAAC,KAAK;EACdL,IAAI,EAAEC,4BAAqB,CAACC,UAAU;EACtCH,UAAU,EAAE,CAACM,CAAC;CACf,CAAC,CAAC;AAEL;;;AAAAF,OAAA,CAAAC,YAAA,GAAAA,YAAA;AAGO,MAAME,SAAS,GACpBT,KAAsE,IAEtEA,KAAK,CAACC,GAAG,CACNC,UAAU,KAAyC;EAClDC,IAAI,EAAEC,4BAAqB,CAACC,UAAU;EACtCH;CACD,CAAC,CACH;AAEH;;;AAAAI,OAAA,CAAAG,SAAA,GAAAA,SAAA;AAGO,MAAMC,iBAAiB,GAC5BV,KAAuD,IAEvDA,KAAK,CAACC,GAAG,CAACO,CAAC,KAAK;EACdL,IAAI,EAAEC,4BAAqB,CAACC,UAAU;EACtCH,UAAU,EAAE,CAACM,CAAC;CACf,CAAC,CAAC;AAEL;;;AAAAF,OAAA,CAAAI,iBAAA,GAAAA,iBAAA;AAGO,MAAMC,MAAM,GACjBA,MAAiD,KACX;EACtCR,IAAI,EAAEC,4BAAqB,CAAC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C,UAAU,KAAK;IAAEA;EAAU,CAAE,CAA4B;CAE5D,CAAC;AAEF;;;AAAA3B,OAAA,CAAAyB,IAAA,GAAAA,IAAA;AAGO,MAAMG,YAAY,GACvBC,OAA6D,KACjB;EAC5ChC,IAAI,EAAEC,4BAAqB,CAACgC,aAAa;EACzC,GAAGD;CACJ,CAAC;AAEF;;;AAAA7B,OAAA,CAAA4B,YAAA,GAAAA,YAAA;AAGO,MAAMG,IAAI,GACfF,OAAqD,KACjB;EACpChC,IAAI,EAAEC,4BAAqB,CAACkC,IAAI;EAChC,GAAGH;CACJ,CAAC;AAEF;;;AAAA7B,OAAA,CAAA+B,IAAA,GAAAA,IAAA;AAGO,MAAME,SAAS,GACpBJ,OAA0D,KACjB;EACzChC,IAAI,EAAEC,4BAAqB,CAACoC,SAAS;EACrC,GAAGL;CACJ,CAAC;AAEF;;;AAAA7B,OAAA,CAAAiC,SAAA,GAAAA,SAAA;AAGO,MAAME,OAAO,GAClBN,OAAwD,KACjB;EACvChC,IAAI,EAAEC,4BAAqB,CAACsC,OAAO;EACnC,GAAGP;CACJ,CAAC;AAEF;;;AAAA7B,OAAA,CAAAmC,OAAA,GAAAA,OAAA;AAGO,MAAME,SAAS,GACpBR,OAA0D,KACjB;EACzChC,IAAI,EAAEC,4BAAqB,CAACwC,SAAS;EACrC,GAAGT;CACJ,CAAC;AAEF;;;AAAA7B,OAAA,CAAAqC,SAAA,GAAAA,SAAA;AAGO,MAAME,WAAW,GACtBC,OAAe,KAC4B;EAC3C3C,IAAI,EAAEC,4BAAqB,CAAC2C,YAAY;EACxCD;CACD,CAAC;AAAAxC,OAAA,CAAAuC,WAAA,GAAAA,WAAA","ignoreList":[]}
|
package/mjs/Helpers/ui.mjs
CHANGED
|
@@ -13,6 +13,20 @@ export const singleColumn = items => items.map(c => ({
|
|
|
13
13
|
type: MessageComponentTypes.ACTION_ROW,
|
|
14
14
|
components: [c]
|
|
15
15
|
}));
|
|
16
|
+
/**
|
|
17
|
+
* Helper to create an Action Row grid.
|
|
18
|
+
*/
|
|
19
|
+
export const gridModal = items => items.map(components => ({
|
|
20
|
+
type: MessageComponentTypes.ACTION_ROW,
|
|
21
|
+
components
|
|
22
|
+
}));
|
|
23
|
+
/**
|
|
24
|
+
* Helper to create a single column of components
|
|
25
|
+
*/
|
|
26
|
+
export const singleColumnModal = items => items.map(c => ({
|
|
27
|
+
type: MessageComponentTypes.ACTION_ROW,
|
|
28
|
+
components: [c]
|
|
29
|
+
}));
|
|
16
30
|
/**
|
|
17
31
|
* Helper to create a button component.
|
|
18
32
|
*/
|
package/mjs/Helpers/ui.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.mjs","names":["TextInputStyleTypes","ButtonStyleTypes","MessageComponentTypes","grid","items","map","components","type","ACTION_ROW","singleColumn","c","button","BUTTON","style","PRIMARY","select","STRING_SELECT","userSelect","USER_SELECT","roleSelect","ROLE_SELECT","mentionableSelect","MENTIONABLE_SELECT","channelSelect","CHANNEL_SELECT","textInput","input","TEXT_INPUT","SHORT","poll","answers","poll_media","mediaGallery","options","MEDIA_GALLERY","file","FILE","container","CONTAINER","section","SECTION","seperator","SEPARATOR","textDisplay","content","TEXT_DISPLAY"],"sources":["../../src/Helpers/ui.ts"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"file":"ui.mjs","names":["TextInputStyleTypes","ButtonStyleTypes","MessageComponentTypes","grid","items","map","components","type","ACTION_ROW","singleColumn","c","gridModal","singleColumnModal","button","BUTTON","style","PRIMARY","select","STRING_SELECT","userSelect","USER_SELECT","roleSelect","ROLE_SELECT","mentionableSelect","MENTIONABLE_SELECT","channelSelect","CHANNEL_SELECT","textInput","input","TEXT_INPUT","SHORT","poll","answers","poll_media","mediaGallery","options","MEDIA_GALLERY","file","FILE","container","CONTAINER","section","SECTION","seperator","SEPARATOR","textDisplay","content","TEXT_DISPLAY"],"sources":["../../src/Helpers/ui.ts"],"sourcesContent":[null],"mappings":"AAoB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C,GAAGT;CACJ,CAAC;AAEF;;;AAGA,OAAO,MAAMU,WAAW,GACtBC,OAAe,KAC4B;EAC3CvC,IAAI,EAAEL,qBAAqB,CAAC6C,YAAY;EACxCD;CACD,CAAC","ignoreList":[]}
|
package/mjs/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const LIB_VERSION = "0.118.
|
|
1
|
+
export const LIB_VERSION = "0.118.3";
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dfx",
|
|
3
|
-
"version": "0.118.
|
|
3
|
+
"version": "0.118.3",
|
|
4
4
|
"description": "Effect-TS discord library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
"optionalDependencies": {
|
|
45
45
|
"discord-verify": "^1.2.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "263325060c3c78486eeed458d5752ca466b1aeac",
|
|
48
48
|
"main": "./index.js"
|
|
49
49
|
}
|
package/src/Helpers/ui.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type {
|
|
2
|
+
ActionRowComponentForMessageRequest,
|
|
2
3
|
ActionRowComponentForModalRequest,
|
|
3
4
|
ButtonComponentForMessageRequest,
|
|
4
5
|
ChannelSelectComponentForMessageRequest,
|
|
@@ -27,6 +28,32 @@ import {
|
|
|
27
28
|
* Helper to create an Action Row grid.
|
|
28
29
|
*/
|
|
29
30
|
export const grid = (
|
|
31
|
+
items: ReadonlyArray<
|
|
32
|
+
ReadonlyArray<ActionRowComponentForMessageRequest["components"][number]>
|
|
33
|
+
>,
|
|
34
|
+
): Array<ActionRowComponentForMessageRequest> =>
|
|
35
|
+
items.map(
|
|
36
|
+
(components): ActionRowComponentForMessageRequest => ({
|
|
37
|
+
type: MessageComponentTypes.ACTION_ROW,
|
|
38
|
+
components,
|
|
39
|
+
}),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Helper to create a single column of components
|
|
44
|
+
*/
|
|
45
|
+
export const singleColumn = (
|
|
46
|
+
items: Array<ActionRowComponentForMessageRequest["components"][number]>,
|
|
47
|
+
): Array<ActionRowComponentForMessageRequest> =>
|
|
48
|
+
items.map(c => ({
|
|
49
|
+
type: MessageComponentTypes.ACTION_ROW,
|
|
50
|
+
components: [c],
|
|
51
|
+
}))
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Helper to create an Action Row grid.
|
|
55
|
+
*/
|
|
56
|
+
export const gridModal = (
|
|
30
57
|
items: ReadonlyArray<ReadonlyArray<TextInputComponentForModalRequest>>,
|
|
31
58
|
): Array<ActionRowComponentForModalRequest> =>
|
|
32
59
|
items.map(
|
|
@@ -39,8 +66,8 @@ export const grid = (
|
|
|
39
66
|
/**
|
|
40
67
|
* Helper to create a single column of components
|
|
41
68
|
*/
|
|
42
|
-
export const
|
|
43
|
-
items:
|
|
69
|
+
export const singleColumnModal = (
|
|
70
|
+
items: ReadonlyArray<TextInputComponentForModalRequest>,
|
|
44
71
|
): Array<ActionRowComponentForModalRequest> =>
|
|
45
72
|
items.map(c => ({
|
|
46
73
|
type: MessageComponentTypes.ACTION_ROW,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = "0.118.
|
|
1
|
+
export const LIB_VERSION = "0.118.3";
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "0.118.
|
|
1
|
+
export declare const LIB_VERSION = "0.118.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED