@devvit/runtimes 0.11.0-next-2024-08-14-9fb0d1d0f.0 → 0.11.0-next-2024-08-14-0fd71c398.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/BuildInfoUtil.d.ts +2 -7
- package/lib/BuildInfoUtil.d.ts.map +1 -1
- package/lib/BuildInfoUtil.js +4 -12
- package/package.json +8 -8
package/lib/BuildInfoUtil.d.ts
CHANGED
@@ -10,15 +10,10 @@ export type BuildInfoDependencies = {
|
|
10
10
|
[name: string]: string;
|
11
11
|
};
|
12
12
|
/**
|
13
|
-
* Collect significant dependencies and devDependencies
|
14
|
-
* (under the "node" key).
|
13
|
+
* Collect significant dependencies and devDependencies from a relative path.
|
14
|
+
* Also includes Node.js (under the "node" key).
|
15
15
|
* @arg path The absolute or relative path to resolve from (a directory or
|
16
16
|
* file). Usually, `path.join(process.cwd(), 'src')`.
|
17
17
|
*/
|
18
18
|
export declare function newBuildInfoDependencies(path: string): BuildInfoDependencies;
|
19
|
-
/**
|
20
|
-
* @devvit/public-api version relative path. Eg, '1.2.3', '0.11.0-dev',
|
21
|
-
* '0.10.23-next-2024-07-30-8bdb131a7.0'.
|
22
|
-
*/
|
23
|
-
export declare function requirePublicAPIVersion(path: string): string;
|
24
19
|
//# sourceMappingURL=BuildInfoUtil.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BuildInfoUtil.d.ts","sourceRoot":"","sources":["../../src/lib/BuildInfoUtil.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB,
|
1
|
+
{"version":3,"file":"BuildInfoUtil.d.ts","sourceRoot":"","sources":["../../src/lib/BuildInfoUtil.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB,CAyB5E"}
|
package/lib/BuildInfoUtil.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { createRequire } from 'module';
|
2
2
|
import url from 'node:url';
|
3
3
|
/**
|
4
|
-
* Collect significant dependencies and devDependencies
|
5
|
-
* (under the "node" key).
|
4
|
+
* Collect significant dependencies and devDependencies from a relative path.
|
5
|
+
* Also includes Node.js (under the "node" key).
|
6
6
|
* @arg path The absolute or relative path to resolve from (a directory or
|
7
7
|
* file). Usually, `path.join(process.cwd(), 'src')`.
|
8
8
|
*/
|
@@ -21,21 +21,13 @@ export function newBuildInfoDependencies(path) {
|
|
21
21
|
catch {
|
22
22
|
//
|
23
23
|
}
|
24
|
-
deps['@devvit/public-api'] = requirePublicAPIVersion(path);
|
25
|
-
return deps;
|
26
|
-
}
|
27
|
-
/**
|
28
|
-
* @devvit/public-api version relative path. Eg, '1.2.3', '0.11.0-dev',
|
29
|
-
* '0.10.23-next-2024-07-30-8bdb131a7.0'.
|
30
|
-
*/
|
31
|
-
export function requirePublicAPIVersion(path) {
|
32
|
-
const require = createRequire(url.pathToFileURL(path));
|
33
24
|
try {
|
34
25
|
// eslint-disable-next-line @benasher44/implicit-dependencies/no-implicit
|
35
26
|
const publicAPI = require('@devvit/public-api/package.json');
|
36
|
-
|
27
|
+
deps[publicAPI.name] = publicAPI.version;
|
37
28
|
}
|
38
29
|
catch (err) {
|
39
30
|
throw Error('missing @devvit/public-api NPM dependency', { cause: err });
|
40
31
|
}
|
32
|
+
return deps;
|
41
33
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@devvit/runtimes",
|
3
|
-
"version": "0.11.0-next-2024-08-14-
|
3
|
+
"version": "0.11.0-next-2024-08-14-0fd71c398.0",
|
4
4
|
"license": "BSD-3-Clause",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -26,9 +26,9 @@
|
|
26
26
|
},
|
27
27
|
"types": "./index.d.ts",
|
28
28
|
"dependencies": {
|
29
|
-
"@devvit/protos": "0.11.0-next-2024-08-14-
|
30
|
-
"@devvit/shared-types": "0.11.0-next-2024-08-14-
|
31
|
-
"@devvit/web-worker": "0.11.0-next-2024-08-14-
|
29
|
+
"@devvit/protos": "0.11.0-next-2024-08-14-0fd71c398.0",
|
30
|
+
"@devvit/shared-types": "0.11.0-next-2024-08-14-0fd71c398.0",
|
31
|
+
"@devvit/web-worker": "0.11.0-next-2024-08-14-0fd71c398.0",
|
32
32
|
"base64-js": "1.5.1",
|
33
33
|
"buffer": "6.0.3",
|
34
34
|
"cron-parser": "4.7.1",
|
@@ -39,9 +39,9 @@
|
|
39
39
|
"uuid": "9.0.0"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
|
-
"@devvit/eslint-config": "0.11.0-next-2024-08-14-
|
43
|
-
"@devvit/repo-tools": "0.11.0-next-2024-08-14-
|
44
|
-
"@devvit/tsconfig": "0.11.0-next-2024-08-14-
|
42
|
+
"@devvit/eslint-config": "0.11.0-next-2024-08-14-0fd71c398.0",
|
43
|
+
"@devvit/repo-tools": "0.11.0-next-2024-08-14-0fd71c398.0",
|
44
|
+
"@devvit/tsconfig": "0.11.0-next-2024-08-14-0fd71c398.0",
|
45
45
|
"@types/node-localstorage": "1.3.0",
|
46
46
|
"@types/uuid": "9.0.0",
|
47
47
|
"concurrently": "7.5.0",
|
@@ -55,5 +55,5 @@
|
|
55
55
|
"directory": "dist"
|
56
56
|
},
|
57
57
|
"source": "./src/index.ts",
|
58
|
-
"gitHead": "
|
58
|
+
"gitHead": "fa443c0f34e4a8c1f5bf5835a98bd45c853573b8"
|
59
59
|
}
|