@fennex-sand/constants 1.0.12

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.
@@ -0,0 +1,7 @@
1
+ export declare const GENRE_MAP: Record<string, number>;
2
+ export declare const GENRE_MAP_INVERTED: any;
3
+ export declare const TMDB_BASE_URL = "https://api.themoviedb.org/3";
4
+ export declare const YEARS_FILTER: string[];
5
+ export declare const GENRES_FILTER: string[];
6
+ export declare const ALL = "all";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAoB5C,CAAC;AAEF,eAAO,MAAM,kBAAkB,KAAsE,CAAC;AACtG,eAAO,MAAM,aAAa,iCAAiC,CAAC;AAE5D,eAAO,MAAM,YAAY,UAA8F,CAAC;AACxH,eAAO,MAAM,aAAa,UAAuC,CAAC;AAElE,eAAO,MAAM,GAAG,QAAQ,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
1
+ export const GENRE_MAP = {
2
+ Action: 28,
3
+ Adventure: 12,
4
+ Animation: 16,
5
+ Comedy: 35,
6
+ Crime: 80,
7
+ Documentary: 99,
8
+ Drama: 18,
9
+ Family: 10751,
10
+ Fantasy: 14,
11
+ History: 36,
12
+ Horror: 27,
13
+ Music: 10402,
14
+ Mystery: 9648,
15
+ Romance: 10749,
16
+ 'Science Fiction': 878,
17
+ 'TV Movie': 10770,
18
+ Thriller: 53,
19
+ War: 10752,
20
+ Western: 37,
21
+ };
22
+ export const GENRE_MAP_INVERTED = Object.fromEntries(Object.entries(GENRE_MAP).map(a => a.reverse()));
23
+ export const TMDB_BASE_URL = 'https://api.themoviedb.org/3';
24
+ export const YEARS_FILTER = Array.from({ length: 4 }, (_, i) => (new Date().getUTCFullYear() - i).toString()).reverse();
25
+ export const GENRES_FILTER = ['All', 'Action', 'Comedy', 'Drama'];
26
+ export const ALL = 'all';
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAA2B;IAC/C,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,WAAW,EAAE,EAAE;IACf,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,KAAK;IACd,iBAAiB,EAAE,GAAG;IACtB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,EAAE;IACZ,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,EAAE;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,aAAa,GAAG,8BAA8B,CAAC;AAE5D,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;AACxH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AAElE,MAAM,CAAC,MAAM,GAAG,GAAG,KAAK,CAAC"}
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@fennex-sand/constants",
3
+ "version": "1.0.12",
4
+ "description": "Shared constants for lynxjs projects",
5
+ "author": "Avraham Hamu",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "main": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "scripts": {
14
+ "build": "tsc -p tsconfig.json",
15
+ "dev": "tsc --watch",
16
+ "clean": "rm -rf dist",
17
+ "publish": "npm version patch && npm publish --access public"
18
+ },
19
+ "devDependencies": {
20
+ "typescript": "~5.8.3"
21
+ }
22
+ }