@devvit/public-api 0.11.0-next-2024-07-15-7b4288095.0 → 0.11.0-next-2024-07-15-e40b92a49.0
Sign up to get free protection for your applications and to get access to all the features.
- package/devvit/internals/blocks/handler/useInterval.d.ts.map +1 -1
- package/devvit/internals/blocks/handler/useInterval.js +5 -1
- package/meta.json +3 -3
- package/meta.min.json +4 -4
- package/package.json +7 -7
- package/public-api.iife.js +6 -2
- package/public-api.min.js +1 -1
- package/public-api.min.js.map +3 -3
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useInterval.d.ts","sourceRoot":"","sources":["../../../../../src/devvit/internals/blocks/handler/useInterval.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAqEpE,wBAAgB,WAAW,CACzB,QAAQ,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EACpC,gBAAgB,EAAE,MAAM,GACvB,iBAAiB,
|
1
|
+
{"version":3,"file":"useInterval.d.ts","sourceRoot":"","sources":["../../../../../src/devvit/internals/blocks/handler/useInterval.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAqEpE,wBAAgB,WAAW,CACzB,QAAQ,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EACpC,gBAAgB,EAAE,MAAM,GACvB,iBAAiB,CASnB"}
|
@@ -73,7 +73,11 @@ class IntervalHook {
|
|
73
73
|
}
|
74
74
|
_IntervalHook_hookId = new WeakMap(), _IntervalHook_invalidate = new WeakMap(), _IntervalHook_callback = new WeakMap(), _IntervalHook_context = new WeakMap();
|
75
75
|
export function useInterval(callback, requestedDelayMs) {
|
76
|
-
|
76
|
+
const hook = registerHook({ namespace: 'useInterval' }, (params) => {
|
77
77
|
return new IntervalHook(callback, requestedDelayMs, params);
|
78
78
|
});
|
79
|
+
return {
|
80
|
+
start: () => hook.start(),
|
81
|
+
stop: () => hook.stop(),
|
82
|
+
};
|
79
83
|
}
|
package/meta.json
CHANGED
@@ -12373,7 +12373,7 @@
|
|
12373
12373
|
"format": "esm"
|
12374
12374
|
},
|
12375
12375
|
"src/devvit/internals/blocks/handler/useInterval.ts": {
|
12376
|
-
"bytes":
|
12376
|
+
"bytes": 2540,
|
12377
12377
|
"imports": [
|
12378
12378
|
{
|
12379
12379
|
"path": "../protos/dist/index.js",
|
@@ -14509,7 +14509,7 @@
|
|
14509
14509
|
"bytesInOutput": 4936
|
14510
14510
|
},
|
14511
14511
|
"src/devvit/internals/blocks/handler/useInterval.ts": {
|
14512
|
-
"bytesInOutput":
|
14512
|
+
"bytesInOutput": 2446
|
14513
14513
|
},
|
14514
14514
|
"src/devvit/internals/blocks/handler/types.ts": {
|
14515
14515
|
"bytesInOutput": 56
|
@@ -14614,7 +14614,7 @@
|
|
14614
14614
|
"bytesInOutput": 4358
|
14615
14615
|
}
|
14616
14616
|
},
|
14617
|
-
"bytes":
|
14617
|
+
"bytes": 15125066
|
14618
14618
|
}
|
14619
14619
|
}
|
14620
14620
|
}
|
package/meta.min.json
CHANGED
@@ -3614,7 +3614,7 @@
|
|
3614
3614
|
"format": "esm"
|
3615
3615
|
},
|
3616
3616
|
"src/devvit/internals/blocks/handler/useInterval.ts": {
|
3617
|
-
"bytes":
|
3617
|
+
"bytes": 2540,
|
3618
3618
|
"imports": [
|
3619
3619
|
{
|
3620
3620
|
"path": "@devvit/protos",
|
@@ -4725,7 +4725,7 @@
|
|
4725
4725
|
"imports": [],
|
4726
4726
|
"exports": [],
|
4727
4727
|
"inputs": {},
|
4728
|
-
"bytes":
|
4728
|
+
"bytes": 1180732
|
4729
4729
|
},
|
4730
4730
|
"dist/public-api.min.js": {
|
4731
4731
|
"imports": [
|
@@ -5435,7 +5435,7 @@
|
|
5435
5435
|
"bytesInOutput": 2975
|
5436
5436
|
},
|
5437
5437
|
"src/devvit/internals/blocks/handler/useInterval.ts": {
|
5438
|
-
"bytesInOutput":
|
5438
|
+
"bytesInOutput": 1229
|
5439
5439
|
},
|
5440
5440
|
"src/devvit/internals/blocks/handler/RenderContext.ts": {
|
5441
5441
|
"bytesInOutput": 2394
|
@@ -5537,7 +5537,7 @@
|
|
5537
5537
|
"bytesInOutput": 2083
|
5538
5538
|
}
|
5539
5539
|
},
|
5540
|
-
"bytes":
|
5540
|
+
"bytes": 251349
|
5541
5541
|
}
|
5542
5542
|
}
|
5543
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-15-
|
3
|
+
"version": "0.11.0-next-2024-07-15-e40b92a49.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-15-
|
34
|
-
"@devvit/shared-types": "0.11.0-next-2024-07-15-
|
33
|
+
"@devvit/protos": "0.11.0-next-2024-07-15-e40b92a49.0",
|
34
|
+
"@devvit/shared-types": "0.11.0-next-2024-07-15-e40b92a49.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-15-
|
43
|
-
"@devvit/repo-tools": "0.11.0-next-2024-07-15-
|
44
|
-
"@devvit/tsconfig": "0.11.0-next-2024-07-15-
|
42
|
+
"@devvit/eslint-config": "0.11.0-next-2024-07-15-e40b92a49.0",
|
43
|
+
"@devvit/repo-tools": "0.11.0-next-2024-07-15-e40b92a49.0",
|
44
|
+
"@devvit/tsconfig": "0.11.0-next-2024-07-15-e40b92a49.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": "760086fe69251ddf0875e46c2c3112f515e32414"
|
68
68
|
}
|