@devvit/shared-types 0.11.0-next-2024-07-26-725c11fcb.0 → 0.11.0-next-2024-07-29-02bddfa07.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/imageUtil.js +1 -1
  2. package/package.json +6 -6
package/imageUtil.js CHANGED
@@ -61,7 +61,7 @@ export function sanitizeImageURL(imageUrl) {
61
61
  const url = new URL(dataSeparator > 0 ? imageUrl.slice(0, dataSeparator) : imageUrl);
62
62
  // nothing to sanitize
63
63
  if (url.protocol.startsWith('http') || url.protocol.startsWith('blob')) {
64
- return imageUrl;
64
+ return encodeURI(imageUrl);
65
65
  }
66
66
  const mediaType = url.pathname;
67
67
  const [mimetype] = mediaType.split(';');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/shared-types",
3
- "version": "0.11.0-next-2024-07-26-725c11fcb.0",
3
+ "version": "0.11.0-next-2024-07-29-02bddfa07.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,14 +24,14 @@
24
24
  },
25
25
  "types": "./index.d.ts",
26
26
  "dependencies": {
27
- "@devvit/protos": "0.11.0-next-2024-07-26-725c11fcb.0",
27
+ "@devvit/protos": "0.11.0-next-2024-07-29-02bddfa07.0",
28
28
  "jsonschema": "1.4.1",
29
29
  "uuid": "9.0.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@devvit/eslint-config": "0.11.0-next-2024-07-26-725c11fcb.0",
33
- "@devvit/repo-tools": "0.11.0-next-2024-07-26-725c11fcb.0",
34
- "@devvit/tsconfig": "0.11.0-next-2024-07-26-725c11fcb.0",
32
+ "@devvit/eslint-config": "0.11.0-next-2024-07-29-02bddfa07.0",
33
+ "@devvit/repo-tools": "0.11.0-next-2024-07-29-02bddfa07.0",
34
+ "@devvit/tsconfig": "0.11.0-next-2024-07-29-02bddfa07.0",
35
35
  "@types/redis-mock": "0.17.1",
36
36
  "@types/uuid": "9.0.0",
37
37
  "eslint": "8.9.0",
@@ -45,5 +45,5 @@
45
45
  "directory": "dist"
46
46
  },
47
47
  "source": "./src/index.ts",
48
- "gitHead": "6f87ed31be97524e6a1d40c2a6e1a12fc3760549"
48
+ "gitHead": "aca793fc6cc4cb13f65944aac69a5680d25a7757"
49
49
  }