@devvit/public-api 0.11.0-next-2024-07-11-9d8f8bdd4.0 → 0.11.0-next-2024-07-11-0bd3fccfe.0
Sign up to get free protection for your applications and to get access to all the features.
- package/devvit/Devvit.d.ts.map +1 -1
- package/devvit/Devvit.js +18 -6
- package/meta.json +128 -70
- package/meta.min.json +15 -5
- package/package.json +7 -7
- package/public-api.d.ts +523 -841
- package/public-api.iife.js +266 -3
- package/public-api.min.js +4 -4
- package/public-api.min.js.map +3 -3
- package/types/configuration.d.ts.map +1 -1
package/devvit/Devvit.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Devvit.d.ts","sourceRoot":"","sources":["../../src/devvit/Devvit.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Devvit.d.ts","sourceRoot":"","sources":["../../src/devvit/Devvit.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAItD,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,IAAI,EAEJ,YAAY,EACZ,wBAAwB,EACxB,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,sBAAsB,EAGtB,gBAAgB,EAChB,iBAAiB,EAGjB,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AA4C3B;;;;;GAKG;AACH,KAAK,WAAW,GAAG;IACjB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAEpC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,qBAAa,MAAO,SAAQ,KAAK;;IAC/B,MAAM,CAAC,KAAK,EAAE,WAAW,CAAM;IAgB/B;;;;;;;;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,CAAC;KACL;CACF;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,GAAG,CAAC,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;IAEjD,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,SAAS,CAAC;IAC9C,QAAQ,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;CACzB,CAAC;AAKF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAkB,SAAQ,MAAM,CAAC,MAAM,CAAC,iBAAiB;SAAG;QAEtE,KAAK,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACtC,KAAK,WAAW,GAAG,YAAY,GAAG,GAAG,CAAC,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;QAClF,KAAK,OAAO,GAAG,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;QAClD,KAAK,wBAAwB,GAAG;YAAE,QAAQ,EAAE,EAAE,CAAA;SAAE,CAAC;QACjD,KAAK,QAAQ,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;QAC5C,KAAK,KAAK,CAAC,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG;YAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,eAAe,CAAA;SAAE,CAAC;QAE1E,KAAK,iBAAiB,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,KAAK,GAAG,CAAC,OAAO,CAAC;KACrF;CACF"}
|
package/devvit/Devvit.js
CHANGED
@@ -1,16 +1,17 @@
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
2
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
3
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
4
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
5
|
+
};
|
1
6
|
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
2
7
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
3
8
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
4
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
5
10
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
6
11
|
};
|
7
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
8
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
9
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
10
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
11
|
-
};
|
12
12
|
var _a, _Devvit_appSettings, _Devvit_assets, _Devvit_config, _Devvit_customPostType, _Devvit_formDefinitions, _Devvit_installationSettings, _Devvit_menuItems, _Devvit_scheduledJobHandlers, _Devvit_triggerOnEventHandlers, _Devvit_webviewAssets, _Devvit_uses, _Devvit_pluginClients, _Devvit_use;
|
13
13
|
import * as protos from '@devvit/protos';
|
14
|
+
import { PaymentsServiceDefinition } from '@devvit/protos/payments.js';
|
14
15
|
import { Actor } from '@devvit/shared-types/Actor.js';
|
15
16
|
import { assertValidFormFields } from '../apis/ui/helpers/assertValidFormFields.js';
|
16
17
|
import { SettingScope } from '../types/index.js';
|
@@ -42,7 +43,7 @@ export class Devvit extends Actor {
|
|
42
43
|
* ```
|
43
44
|
*/
|
44
45
|
static configure(config) {
|
45
|
-
__classPrivateFieldSet(this, _a, config, "f", _Devvit_config);
|
46
|
+
__classPrivateFieldSet(this, _a, { ...__classPrivateFieldGet(this, _a, "f", _Devvit_config), ...config }, "f", _Devvit_config);
|
46
47
|
if (pluginIsEnabled(config.http)) {
|
47
48
|
__classPrivateFieldGet(this, _a, "m", _Devvit_use).call(this, protos.HTTPDefinition);
|
48
49
|
}
|
@@ -77,6 +78,9 @@ export class Devvit extends Actor {
|
|
77
78
|
if (pluginIsEnabled(config.realtime)) {
|
78
79
|
__classPrivateFieldGet(this, _a, "m", _Devvit_use).call(this, protos.RealtimeDefinition);
|
79
80
|
}
|
81
|
+
if (pluginIsEnabled(config.payments)) {
|
82
|
+
__classPrivateFieldGet(this, _a, "m", _Devvit_use).call(this, PaymentsServiceDefinition);
|
83
|
+
}
|
80
84
|
}
|
81
85
|
/**
|
82
86
|
* Add a menu item to the Reddit UI.
|
@@ -352,6 +356,14 @@ export class Devvit extends Actor {
|
|
352
356
|
return realtime;
|
353
357
|
}
|
354
358
|
/** @internal */
|
359
|
+
static get paymentsPlugin() {
|
360
|
+
const payments = __classPrivateFieldGet(this, _a, "f", _Devvit_pluginClients)[PaymentsServiceDefinition.fullName];
|
361
|
+
if (!payments) {
|
362
|
+
throw new Error('Payments is not enabled. You can enable it by passing `payments: true` to `Devvit.configure`');
|
363
|
+
}
|
364
|
+
return payments;
|
365
|
+
}
|
366
|
+
/** @internal */
|
355
367
|
static get menuItems() {
|
356
368
|
return __classPrivateFieldGet(this, _a, "f", _Devvit_menuItems);
|
357
369
|
}
|
package/meta.json
CHANGED
@@ -10331,68 +10331,6 @@
|
|
10331
10331
|
],
|
10332
10332
|
"format": "esm"
|
10333
10333
|
},
|
10334
|
-
"../protos/dist/types/devvit/payments/v1alpha/order.js": {
|
10335
|
-
"bytes": 8079,
|
10336
|
-
"imports": [
|
10337
|
-
{
|
10338
|
-
"path": "../../node_modules/protobufjs/minimal.js",
|
10339
|
-
"kind": "import-statement",
|
10340
|
-
"original": "protobufjs/minimal.js"
|
10341
|
-
},
|
10342
|
-
{
|
10343
|
-
"path": "../protos/dist/types/google/protobuf/timestamp.js",
|
10344
|
-
"kind": "import-statement",
|
10345
|
-
"original": "../../../google/protobuf/timestamp.js"
|
10346
|
-
},
|
10347
|
-
{
|
10348
|
-
"path": "../protos/dist/types/typeRegistry.js",
|
10349
|
-
"kind": "import-statement",
|
10350
|
-
"original": "../../../typeRegistry.js"
|
10351
|
-
},
|
10352
|
-
{
|
10353
|
-
"path": "../protos/dist/types/devvit/payments/v1alpha/common.js",
|
10354
|
-
"kind": "import-statement",
|
10355
|
-
"original": "./common.js"
|
10356
|
-
},
|
10357
|
-
{
|
10358
|
-
"path": "../protos/dist/types/devvit/payments/v1alpha/product.js",
|
10359
|
-
"kind": "import-statement",
|
10360
|
-
"original": "./product.js"
|
10361
|
-
}
|
10362
|
-
],
|
10363
|
-
"format": "esm"
|
10364
|
-
},
|
10365
|
-
"../protos/dist/types/devvit/plugin/payments/v1alpha/payments.js": {
|
10366
|
-
"bytes": 24065,
|
10367
|
-
"imports": [
|
10368
|
-
{
|
10369
|
-
"path": "../../node_modules/protobufjs/minimal.js",
|
10370
|
-
"kind": "import-statement",
|
10371
|
-
"original": "protobufjs/minimal.js"
|
10372
|
-
},
|
10373
|
-
{
|
10374
|
-
"path": "../protos/dist/types/google/protobuf/timestamp.js",
|
10375
|
-
"kind": "import-statement",
|
10376
|
-
"original": "../../../../google/protobuf/timestamp.js"
|
10377
|
-
},
|
10378
|
-
{
|
10379
|
-
"path": "../protos/dist/types/typeRegistry.js",
|
10380
|
-
"kind": "import-statement",
|
10381
|
-
"original": "../../../../typeRegistry.js"
|
10382
|
-
},
|
10383
|
-
{
|
10384
|
-
"path": "../protos/dist/types/devvit/payments/v1alpha/order.js",
|
10385
|
-
"kind": "import-statement",
|
10386
|
-
"original": "../../../payments/v1alpha/order.js"
|
10387
|
-
},
|
10388
|
-
{
|
10389
|
-
"path": "../protos/dist/types/devvit/payments/v1alpha/product.js",
|
10390
|
-
"kind": "import-statement",
|
10391
|
-
"original": "../../../payments/v1alpha/product.js"
|
10392
|
-
}
|
10393
|
-
],
|
10394
|
-
"format": "esm"
|
10395
|
-
},
|
10396
10334
|
"../protos/dist/lib/Types.js": {
|
10397
10335
|
"bytes": 2711,
|
10398
10336
|
"imports": [
|
@@ -10410,7 +10348,7 @@
|
|
10410
10348
|
"format": "esm"
|
10411
10349
|
},
|
10412
10350
|
"../protos/dist/index.js": {
|
10413
|
-
"bytes":
|
10351
|
+
"bytes": 8780,
|
10414
10352
|
"imports": [
|
10415
10353
|
{
|
10416
10354
|
"path": "../protos/dist/types/typeRegistry.js",
|
@@ -11092,15 +11030,124 @@
|
|
11092
11030
|
"kind": "import-statement",
|
11093
11031
|
"original": "./types/devvit/actor/automation/v1alpha/event_handlers.js"
|
11094
11032
|
},
|
11033
|
+
{
|
11034
|
+
"path": "../protos/dist/lib/Types.js",
|
11035
|
+
"kind": "import-statement",
|
11036
|
+
"original": "./lib/Types.js"
|
11037
|
+
}
|
11038
|
+
],
|
11039
|
+
"format": "esm"
|
11040
|
+
},
|
11041
|
+
"../protos/dist/types/devvit/payments/v1alpha/order.js": {
|
11042
|
+
"bytes": 8079,
|
11043
|
+
"imports": [
|
11044
|
+
{
|
11045
|
+
"path": "../../node_modules/protobufjs/minimal.js",
|
11046
|
+
"kind": "import-statement",
|
11047
|
+
"original": "protobufjs/minimal.js"
|
11048
|
+
},
|
11049
|
+
{
|
11050
|
+
"path": "../protos/dist/types/google/protobuf/timestamp.js",
|
11051
|
+
"kind": "import-statement",
|
11052
|
+
"original": "../../../google/protobuf/timestamp.js"
|
11053
|
+
},
|
11054
|
+
{
|
11055
|
+
"path": "../protos/dist/types/typeRegistry.js",
|
11056
|
+
"kind": "import-statement",
|
11057
|
+
"original": "../../../typeRegistry.js"
|
11058
|
+
},
|
11059
|
+
{
|
11060
|
+
"path": "../protos/dist/types/devvit/payments/v1alpha/common.js",
|
11061
|
+
"kind": "import-statement",
|
11062
|
+
"original": "./common.js"
|
11063
|
+
},
|
11064
|
+
{
|
11065
|
+
"path": "../protos/dist/types/devvit/payments/v1alpha/product.js",
|
11066
|
+
"kind": "import-statement",
|
11067
|
+
"original": "./product.js"
|
11068
|
+
}
|
11069
|
+
],
|
11070
|
+
"format": "esm"
|
11071
|
+
},
|
11072
|
+
"../protos/dist/types/devvit/plugin/payments/v1alpha/payments.js": {
|
11073
|
+
"bytes": 24065,
|
11074
|
+
"imports": [
|
11075
|
+
{
|
11076
|
+
"path": "../../node_modules/protobufjs/minimal.js",
|
11077
|
+
"kind": "import-statement",
|
11078
|
+
"original": "protobufjs/minimal.js"
|
11079
|
+
},
|
11080
|
+
{
|
11081
|
+
"path": "../protos/dist/types/google/protobuf/timestamp.js",
|
11082
|
+
"kind": "import-statement",
|
11083
|
+
"original": "../../../../google/protobuf/timestamp.js"
|
11084
|
+
},
|
11085
|
+
{
|
11086
|
+
"path": "../protos/dist/types/typeRegistry.js",
|
11087
|
+
"kind": "import-statement",
|
11088
|
+
"original": "../../../../typeRegistry.js"
|
11089
|
+
},
|
11090
|
+
{
|
11091
|
+
"path": "../protos/dist/types/devvit/payments/v1alpha/order.js",
|
11092
|
+
"kind": "import-statement",
|
11093
|
+
"original": "../../../payments/v1alpha/order.js"
|
11094
|
+
},
|
11095
|
+
{
|
11096
|
+
"path": "../protos/dist/types/devvit/payments/v1alpha/product.js",
|
11097
|
+
"kind": "import-statement",
|
11098
|
+
"original": "../../../payments/v1alpha/product.js"
|
11099
|
+
}
|
11100
|
+
],
|
11101
|
+
"format": "esm"
|
11102
|
+
},
|
11103
|
+
"../protos/dist/types/devvit/actor/payments/v1alpha/payments.js": {
|
11104
|
+
"bytes": 9556,
|
11105
|
+
"imports": [
|
11106
|
+
{
|
11107
|
+
"path": "../../node_modules/protobufjs/minimal.js",
|
11108
|
+
"kind": "import-statement",
|
11109
|
+
"original": "protobufjs/minimal.js"
|
11110
|
+
},
|
11111
|
+
{
|
11112
|
+
"path": "../protos/dist/types/typeRegistry.js",
|
11113
|
+
"kind": "import-statement",
|
11114
|
+
"original": "../../../../typeRegistry.js"
|
11115
|
+
},
|
11116
|
+
{
|
11117
|
+
"path": "../protos/dist/types/devvit/payments/v1alpha/order.js",
|
11118
|
+
"kind": "import-statement",
|
11119
|
+
"original": "../../../payments/v1alpha/order.js"
|
11120
|
+
}
|
11121
|
+
],
|
11122
|
+
"format": "esm"
|
11123
|
+
},
|
11124
|
+
"../protos/dist/payments.js": {
|
11125
|
+
"bytes": 312,
|
11126
|
+
"imports": [
|
11095
11127
|
{
|
11096
11128
|
"path": "../protos/dist/types/devvit/plugin/payments/v1alpha/payments.js",
|
11097
11129
|
"kind": "import-statement",
|
11098
11130
|
"original": "./types/devvit/plugin/payments/v1alpha/payments.js"
|
11099
11131
|
},
|
11100
11132
|
{
|
11101
|
-
"path": "../protos/dist/
|
11133
|
+
"path": "../protos/dist/types/devvit/actor/payments/v1alpha/payments.js",
|
11102
11134
|
"kind": "import-statement",
|
11103
|
-
"original": "./
|
11135
|
+
"original": "./types/devvit/actor/payments/v1alpha/payments.js"
|
11136
|
+
},
|
11137
|
+
{
|
11138
|
+
"path": "../protos/dist/types/devvit/payments/v1alpha/common.js",
|
11139
|
+
"kind": "import-statement",
|
11140
|
+
"original": "./types/devvit/payments/v1alpha/common.js"
|
11141
|
+
},
|
11142
|
+
{
|
11143
|
+
"path": "../protos/dist/types/devvit/payments/v1alpha/order.js",
|
11144
|
+
"kind": "import-statement",
|
11145
|
+
"original": "./types/devvit/payments/v1alpha/order.js"
|
11146
|
+
},
|
11147
|
+
{
|
11148
|
+
"path": "../protos/dist/types/devvit/payments/v1alpha/product.js",
|
11149
|
+
"kind": "import-statement",
|
11150
|
+
"original": "./types/devvit/payments/v1alpha/product.js"
|
11104
11151
|
}
|
11105
11152
|
],
|
11106
11153
|
"format": "esm"
|
@@ -11127,7 +11174,7 @@
|
|
11127
11174
|
"format": "esm"
|
11128
11175
|
},
|
11129
11176
|
"src/types/configuration.ts": {
|
11130
|
-
"bytes":
|
11177
|
+
"bytes": 809,
|
11131
11178
|
"imports": [],
|
11132
11179
|
"format": "esm"
|
11133
11180
|
},
|
@@ -12563,13 +12610,18 @@
|
|
12563
12610
|
"format": "esm"
|
12564
12611
|
},
|
12565
12612
|
"src/devvit/Devvit.ts": {
|
12566
|
-
"bytes":
|
12613
|
+
"bytes": 35224,
|
12567
12614
|
"imports": [
|
12568
12615
|
{
|
12569
12616
|
"path": "../protos/dist/index.js",
|
12570
12617
|
"kind": "import-statement",
|
12571
12618
|
"original": "@devvit/protos"
|
12572
12619
|
},
|
12620
|
+
{
|
12621
|
+
"path": "../protos/dist/payments.js",
|
12622
|
+
"kind": "import-statement",
|
12623
|
+
"original": "@devvit/protos/payments.js"
|
12624
|
+
},
|
12573
12625
|
{
|
12574
12626
|
"path": "../shared-types/dist/Actor.js",
|
12575
12627
|
"kind": "import-statement",
|
@@ -14286,11 +14338,17 @@
|
|
14286
14338
|
"bytesInOutput": 7420
|
14287
14339
|
},
|
14288
14340
|
"../protos/dist/types/devvit/plugin/payments/v1alpha/payments.js": {
|
14289
|
-
"bytesInOutput":
|
14341
|
+
"bytesInOutput": 20897
|
14290
14342
|
},
|
14291
14343
|
"../protos/dist/types/devvit/payments/v1alpha/order.js": {
|
14292
14344
|
"bytesInOutput": 7256
|
14293
14345
|
},
|
14346
|
+
"../protos/dist/payments.js": {
|
14347
|
+
"bytesInOutput": 0
|
14348
|
+
},
|
14349
|
+
"../protos/dist/types/devvit/actor/payments/v1alpha/payments.js": {
|
14350
|
+
"bytesInOutput": 7095
|
14351
|
+
},
|
14294
14352
|
"../shared-types/dist/Actor.js": {
|
14295
14353
|
"bytesInOutput": 59
|
14296
14354
|
},
|
@@ -14472,7 +14530,7 @@
|
|
14472
14530
|
"bytesInOutput": 618
|
14473
14531
|
},
|
14474
14532
|
"src/devvit/Devvit.ts": {
|
14475
|
-
"bytesInOutput":
|
14533
|
+
"bytesInOutput": 19555
|
14476
14534
|
},
|
14477
14535
|
"src/apis/reddit/helpers/makeGettersEnumerable.ts": {
|
14478
14536
|
"bytesInOutput": 344
|
@@ -14556,7 +14614,7 @@
|
|
14556
14614
|
"bytesInOutput": 4450
|
14557
14615
|
}
|
14558
14616
|
},
|
14559
|
-
"bytes":
|
14617
|
+
"bytes": 15056843
|
14560
14618
|
}
|
14561
14619
|
}
|
14562
14620
|
}
|
package/meta.min.json
CHANGED
@@ -2415,7 +2415,7 @@
|
|
2415
2415
|
"format": "esm"
|
2416
2416
|
},
|
2417
2417
|
"src/types/configuration.ts": {
|
2418
|
-
"bytes":
|
2418
|
+
"bytes": 809,
|
2419
2419
|
"imports": [],
|
2420
2420
|
"format": "esm"
|
2421
2421
|
},
|
@@ -3851,13 +3851,18 @@
|
|
3851
3851
|
"format": "esm"
|
3852
3852
|
},
|
3853
3853
|
"src/devvit/Devvit.ts": {
|
3854
|
-
"bytes":
|
3854
|
+
"bytes": 35224,
|
3855
3855
|
"imports": [
|
3856
3856
|
{
|
3857
3857
|
"path": "@devvit/protos",
|
3858
3858
|
"kind": "import-statement",
|
3859
3859
|
"external": true
|
3860
3860
|
},
|
3861
|
+
{
|
3862
|
+
"path": "@devvit/protos/payments.js",
|
3863
|
+
"kind": "import-statement",
|
3864
|
+
"external": true
|
3865
|
+
},
|
3861
3866
|
{
|
3862
3867
|
"path": "../shared-types/dist/Actor.js",
|
3863
3868
|
"kind": "import-statement",
|
@@ -4720,7 +4725,7 @@
|
|
4720
4725
|
"imports": [],
|
4721
4726
|
"exports": [],
|
4722
4727
|
"inputs": {},
|
4723
|
-
"bytes":
|
4728
|
+
"bytes": 1180668
|
4724
4729
|
},
|
4725
4730
|
"dist/public-api.min.js": {
|
4726
4731
|
"imports": [
|
@@ -4729,6 +4734,11 @@
|
|
4729
4734
|
"kind": "import-statement",
|
4730
4735
|
"external": true
|
4731
4736
|
},
|
4737
|
+
{
|
4738
|
+
"path": "@devvit/protos/payments.js",
|
4739
|
+
"kind": "import-statement",
|
4740
|
+
"external": true
|
4741
|
+
},
|
4732
4742
|
{
|
4733
4743
|
"path": "@devvit/protos",
|
4734
4744
|
"kind": "import-statement",
|
@@ -5263,7 +5273,7 @@
|
|
5263
5273
|
"bytesInOutput": 1365
|
5264
5274
|
},
|
5265
5275
|
"src/devvit/Devvit.ts": {
|
5266
|
-
"bytesInOutput":
|
5276
|
+
"bytesInOutput": 6310
|
5267
5277
|
},
|
5268
5278
|
"../shared-types/dist/Actor.js": {
|
5269
5279
|
"bytesInOutput": 31
|
@@ -5527,7 +5537,7 @@
|
|
5527
5537
|
"bytesInOutput": 2135
|
5528
5538
|
}
|
5529
5539
|
},
|
5530
|
-
"bytes":
|
5540
|
+
"bytes": 251276
|
5531
5541
|
}
|
5532
5542
|
}
|
5533
5543
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@devvit/public-api",
|
3
|
-
"version": "0.11.0-next-2024-07-11-
|
3
|
+
"version": "0.11.0-next-2024-07-11-0bd3fccfe.0",
|
4
4
|
"license": "BSD-3-Clause",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -30,8 +30,8 @@
|
|
30
30
|
},
|
31
31
|
"types": "./index.d.ts",
|
32
32
|
"dependencies": {
|
33
|
-
"@devvit/protos": "0.11.0-next-2024-07-11-
|
34
|
-
"@devvit/shared-types": "0.11.0-next-2024-07-11-
|
33
|
+
"@devvit/protos": "0.11.0-next-2024-07-11-0bd3fccfe.0",
|
34
|
+
"@devvit/shared-types": "0.11.0-next-2024-07-11-0bd3fccfe.0",
|
35
35
|
"base64-js": "1.5.1",
|
36
36
|
"clone-deep": "4.0.1",
|
37
37
|
"core-js": "3.27.2",
|
@@ -39,9 +39,9 @@
|
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
41
|
"@ampproject/filesize": "4.3.0",
|
42
|
-
"@devvit/eslint-config": "0.11.0-next-2024-07-11-
|
43
|
-
"@devvit/repo-tools": "0.11.0-next-2024-07-11-
|
44
|
-
"@devvit/tsconfig": "0.11.0-next-2024-07-11-
|
42
|
+
"@devvit/eslint-config": "0.11.0-next-2024-07-11-0bd3fccfe.0",
|
43
|
+
"@devvit/repo-tools": "0.11.0-next-2024-07-11-0bd3fccfe.0",
|
44
|
+
"@devvit/tsconfig": "0.11.0-next-2024-07-11-0bd3fccfe.0",
|
45
45
|
"@microsoft/api-extractor": "7.41.0",
|
46
46
|
"@reddit/faceplate-ui": "11.3.3",
|
47
47
|
"@types/clone-deep": "4.0.1",
|
@@ -64,5 +64,5 @@
|
|
64
64
|
}
|
65
65
|
},
|
66
66
|
"source": "./src/index.ts",
|
67
|
-
"gitHead": "
|
67
|
+
"gitHead": "34e01d0e14da9f0ee92761e0977b71cd78671c65"
|
68
68
|
}
|