@dchighs/dc-config-mapper 0.5.8 → 0.5.9

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/README.md CHANGED
@@ -29,9 +29,9 @@ import { ChestsMapper } from "@dchighs/dc-config-mapper"
29
29
  import { Localization } from "@dchighs/dc-localization"
30
30
 
31
31
  ;(async () => {
32
- const userId = process.env.USER_ID
33
- const authToken = process.env.AUTH_TOKEN
34
- const url = process.env.URL
32
+ const userId = process.env.GAME_GAME_USER_ID
33
+ const authToken = process.env.GAME_GAME_AUTH_TOKEN
34
+ const url = process.env.GAME_CONFIG_URL
35
35
 
36
36
  const config = await Config.create({
37
37
  userId: userId,
package/package.json CHANGED
@@ -1,44 +1,47 @@
1
- {
2
- "name": "@dchighs/dc-config-mapper",
3
- "version": "0.5.8",
4
- "description": "A opined library to restructure and populate configuration for Dragon City.",
5
- "main": "./dist/index.js",
6
- "module": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "files": [
9
- "dist/*",
10
- "!/**/__tests__"
11
- ],
12
- "keywords": [
13
- "dragon city",
14
- "dc",
15
- "configuration",
16
- "mapper",
17
- "dc highs"
18
- ],
19
- "scripts": {
20
- "build": "tsc",
21
- "playground": "ts-node ./playground/index.ts"
22
- },
23
- "author": "Marcuth",
24
- "license": "MIT",
25
- "type": "commonjs",
26
- "devDependencies": {
27
- "@marcuth/env": "^0.0.1",
28
- "@types/lodash": "^4.17.21",
29
- "@types/node": "^25.0.3",
30
- "@types/pluralize": "^0.0.33",
31
- "ts-node": "^10.9.2",
32
- "typescript": "^5.9.3"
33
- },
34
- "dependencies": {
35
- "lodash": "^4.17.21",
36
- "pluralize": "^8.0.0",
37
- "zod": "^4.3.5"
38
- },
39
- "peerDependencies": {
40
- "@dchighs/dc-config": "^0.0.1",
41
- "@dchighs/dc-core": "^0.2.0",
42
- "@dchighs/dc-localization": "^0.0.5"
43
- }
44
- }
1
+ {
2
+ "name": "@dchighs/dc-config-mapper",
3
+ "version": "0.5.9",
4
+ "description": "A opined library to restructure and populate configuration for Dragon City.",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist/*",
10
+ "!/**/__tests__"
11
+ ],
12
+ "keywords": [
13
+ "dragon city",
14
+ "dc",
15
+ "configuration",
16
+ "mapper",
17
+ "dc highs"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsc",
21
+ "test": "vitest run",
22
+ "playground": "ts-node ./playground/index.ts"
23
+ },
24
+ "author": "Marcuth",
25
+ "license": "MIT",
26
+ "type": "commonjs",
27
+ "devDependencies": {
28
+ "@marcuth/env": "^0.0.1",
29
+ "@types/lodash": "^4.17.24",
30
+ "@types/node": "^25.3.3",
31
+ "@types/pluralize": "^0.0.33",
32
+ "ts-morph": "^27.0.2",
33
+ "ts-node": "^10.9.2",
34
+ "typescript": "^5.9.3",
35
+ "vitest": "^4.0.18"
36
+ },
37
+ "dependencies": {
38
+ "lodash": "^4.17.23",
39
+ "pluralize": "^8.0.0",
40
+ "zod": "^4.3.6"
41
+ },
42
+ "peerDependencies": {
43
+ "@dchighs/dc-config": "^0.0.6",
44
+ "@dchighs/dc-core": "^0.3.0",
45
+ "@dchighs/dc-localization": "^0.0.6"
46
+ }
47
+ }
@@ -1,11 +0,0 @@
1
- export declare enum RewardResourceType {
2
- Food = "food",
3
- Gold = "gold",
4
- Gem = "gem",
5
- Xp = "xp",
6
- HabitatToken = "habitat_token",
7
- Dragon = "dragon",
8
- IslandCoin = "island_coin",
9
- Chest = "chest",
10
- Building = "building"
11
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RewardResourceType = void 0;
4
- var RewardResourceType;
5
- (function (RewardResourceType) {
6
- RewardResourceType["Food"] = "food";
7
- RewardResourceType["Gold"] = "gold";
8
- RewardResourceType["Gem"] = "gem";
9
- RewardResourceType["Xp"] = "xp";
10
- RewardResourceType["HabitatToken"] = "habitat_token";
11
- RewardResourceType["Dragon"] = "dragon";
12
- RewardResourceType["IslandCoin"] = "island_coin";
13
- RewardResourceType["Chest"] = "chest";
14
- RewardResourceType["Building"] = "building";
15
- })(RewardResourceType || (exports.RewardResourceType = RewardResourceType = {}));