@devvit/shared-types 0.13.4 → 0.13.5-next-2026-06-15-18-01-30-233fd1e2c.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/omit.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare function omit<T extends Record<string, unknown>, K extends keyof T & string>(input: T, key: K): Omit<T, K>;
2
+ //# sourceMappingURL=omit.d.ts.map
package/omit.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"omit.d.ts","sourceRoot":"","sources":["../src/omit.ts"],"names":[],"mappings":"AAAA,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,GAAG,MAAM,EAChF,KAAK,EAAE,CAAC,EACR,GAAG,EAAE,CAAC,GACL,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAcZ"}
package/omit.js ADDED
@@ -0,0 +1,11 @@
1
+ export function omit(input, key) {
2
+ return Object.keys(input).reduce((output, inputKey) => {
3
+ if (inputKey === key) {
4
+ return output;
5
+ }
6
+ return {
7
+ ...output,
8
+ [inputKey]: input[inputKey],
9
+ };
10
+ }, {});
11
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"omit.test.d.ts","sourceRoot":"","sources":["../src/omit.test.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/shared-types",
3
- "version": "0.13.4",
3
+ "version": "0.13.5-next-2026-06-15-18-01-30-233fd1e2c.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "types": "./dist/index.d.ts",
34
34
  "dependencies": {
35
- "@devvit/protos": "0.13.4",
35
+ "@devvit/protos": "0.13.5-next-2026-06-15-18-01-30-233fd1e2c.0",
36
36
  "jsonschema": "1.4.1",
37
37
  "uuid": "14.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@devvit/repo-tools": "0.13.4",
41
- "@devvit/tsconfig": "0.13.4",
40
+ "@devvit/repo-tools": "0.13.5-next-2026-06-15-18-01-30-233fd1e2c.0",
41
+ "@devvit/tsconfig": "0.13.5-next-2026-06-15-18-01-30-233fd1e2c.0",
42
42
  "@types/node": "20.14.12",
43
43
  "@types/redis-mock": "0.17.1",
44
44
  "@types/uuid": "9.0.0",
@@ -51,5 +51,5 @@
51
51
  "vitest": "4.1.0"
52
52
  },
53
53
  "source": "./src/index.ts",
54
- "gitHead": "0764db07ff28b46865e4ef4388bcb80458003c3b"
54
+ "gitHead": "f9d4e31212dc3bb09fd9c6b003662f98d587f107"
55
55
  }
@@ -45,7 +45,7 @@
45
45
  "examples": ["/external/weather/update", "/external/on/image/ready", "/external/share"]
46
46
  },
47
47
  "scopes": {
48
- "description": "Tokens allowed to access endpoint. Install allows short-lived callback tokens generated by the app in an outgoing `fetch()` wherever the app is installed (a subreddit or user account). Global allows long-lived app tokens.",
48
+ "description": "Tokens allowed to access endpoint. Install allows short-lived callback tokens generated by the app in an outgoing `fetch()` wherever the app is installed (a subreddit or user account). Global allows long-lived managed tokens.",
49
49
  "type": "array",
50
50
  "items": { "enum": ["install", "global"] },
51
51
  "uniqueItems": true,