@tmdb-graphql-api/resolvers 0.0.24 → 0.0.25
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/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/production.analysis.txt +302 -302
- package/dist/types/cjs/helpers/decodeId.d.cts.map +1 -1
- package/dist/types/cjs/helpers/encodeId.d.cts.map +1 -1
- package/dist/types/esm/helpers/decodeId.d.ts.map +1 -1
- package/dist/types/esm/helpers/encodeId.d.ts.map +1 -1
- package/dist/types/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/helpers/decodeId.ts +1 -1
- package/src/helpers/encodeId.ts +1 -1
- package/src/queries/__snapshots__/episode.test.ts.snap +1 -1
- package/src/queries/__snapshots__/season.test.ts.snap +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmdb-graphql-api/resolvers",
|
|
3
3
|
"description": "The TMDB GraphQL resolvers module.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.25",
|
|
5
5
|
"author": "Dylan Aubrey",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/badbatch/themoviedb-graphql-api",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"query-string": "^8.1.0",
|
|
41
41
|
"type-fest": "^4.5.0",
|
|
42
42
|
"@tmdb-graphql-api/rest-client": "0.0.8",
|
|
43
|
-
"@tmdb-graphql-api/schema": "0.0.
|
|
43
|
+
"@tmdb-graphql-api/schema": "0.0.20"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@babel/runtime": "<8",
|
package/src/helpers/decodeId.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { decode } from 'js-base64';
|
|
2
2
|
import { type JsonObject } from 'type-fest';
|
|
3
3
|
|
|
4
|
-
export const decodeId = <T extends JsonObject>(id: string) => JSON.parse(decode(id)) as T;
|
|
4
|
+
export const decodeId = <T extends JsonObject>(id: string) => JSON.parse(decode(decodeURIComponent(id))) as T;
|
package/src/helpers/encodeId.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { encode } from 'js-base64';
|
|
2
2
|
import { type JsonObject } from 'type-fest';
|
|
3
3
|
|
|
4
|
-
export const encodeId = <T extends JsonObject>(obj: T) => encode(JSON.stringify(obj));
|
|
4
|
+
export const encodeId = <T extends JsonObject>(obj: T) => encodeURIComponent(encode(JSON.stringify(obj)));
|
|
@@ -346,7 +346,7 @@ exports[`resolveEpisode > should return the correct episode details 1`] = `
|
|
|
346
346
|
"profile_path": "/tNW2DukUhi0ljCxOcYqs6x30LIH.jpg",
|
|
347
347
|
},
|
|
348
348
|
],
|
|
349
|
-
"id": "eyJpZCI6MTM5OSwic2Vhc29uTnVtYmVyIjoxLCJlcGlzb2RlTnVtYmVyIjoxfQ
|
|
349
|
+
"id": "eyJpZCI6MTM5OSwic2Vhc29uTnVtYmVyIjoxLCJlcGlzb2RlTnVtYmVyIjoxfQ%3D%3D",
|
|
350
350
|
"name": "Winter Is Coming",
|
|
351
351
|
"overview": "Jon Arryn, the Hand of the King, is dead. King Robert Baratheon plans to ask his oldest friend, Eddard Stark, to take Jon's place. Across the sea, Viserys Targaryen plans to wed his sister to a nomadic warlord in exchange for an army.",
|
|
352
352
|
"production_code": "101",
|
|
@@ -4684,7 +4684,7 @@ exports[`resolveSeason > should return the correct season details 1`] = `
|
|
|
4684
4684
|
"vote_count": 115,
|
|
4685
4685
|
},
|
|
4686
4686
|
],
|
|
4687
|
-
"id": "eyJpZCI6MTM5OSwic2Vhc29uTnVtYmVyIjoxfQ
|
|
4687
|
+
"id": "eyJpZCI6MTM5OSwic2Vhc29uTnVtYmVyIjoxfQ%3D%3D",
|
|
4688
4688
|
"name": "Season 1",
|
|
4689
4689
|
"overview": "Trouble is brewing in the Seven Kingdoms of Westeros. For the driven inhabitants of this visionary world, control of Westeros' Iron Throne holds the lure of great power. But in a land where the seasons can last a lifetime, winter is coming...and beyond the Great Wall that protects them, an ancient evil has returned. In Season One, the story centers on three primary areas: the Stark and the Lannister families, whose designs on controlling the throne threaten a tenuous peace; the dragon princess Daenerys, heir to the former dynasty, who waits just over the Narrow Sea with her malevolent brother Viserys; and the Great Wall--a massive barrier of ice where a forgotten danger is stirring.",
|
|
4690
4690
|
"poster_path": "/zwaj4egrhnXOBIit1tyb4Sbt3KP.jpg",
|