@blizzard-api/wow
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -0,2 +1,11 @@ | ||
import * as _blizzard_api_core from '@blizzard-api/core'; | ||
export { } | ||
declare const wow: { | ||
achievement: { | ||
achievementCategory: (achievementCategoryId?: number | undefined) => _blizzard_api_core.Resource<never>; | ||
achievement: (achievementId?: number | undefined) => _blizzard_api_core.Resource<never>; | ||
media: (achievementId: number) => _blizzard_api_core.Resource<never>; | ||
}; | ||
}; | ||
export { wow }; |
@@ -0,3 +1,38 @@ | ||
// src/game-data/base.ts | ||
var base = "/data/wow"; | ||
var mediaBase = `${base}/media`; | ||
// src/game-data/achievement.ts | ||
var achievementBase = `${base}/achievement`; | ||
var achievementCategoryBase = `${base}/achievement-category`; | ||
var achievement = { | ||
achievementCategory: (achievementCategoryId) => { | ||
return { | ||
path: achievementCategoryId ? `${achievementCategoryBase}/${achievementCategoryId}` : `${achievementCategoryBase}/index`, | ||
namespace: "static" | ||
}; | ||
}, | ||
achievement: (achievementId) => { | ||
return { | ||
path: achievementId ? `${achievementBase}/${achievementId}` : `${achievementBase}/index`, | ||
namespace: "static" | ||
}; | ||
}, | ||
media: (achievementId) => { | ||
return { path: `${mediaBase}/achievement/${achievementId}`, namespace: "static" }; | ||
} | ||
}; | ||
// src/game-data/index.ts | ||
var gameDataApi = { | ||
achievement | ||
}; | ||
// src/index.ts | ||
console.log("coool???"); | ||
var wow = { | ||
...gameDataApi | ||
}; | ||
export { | ||
wow | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@blizzard-api/wow", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"license": "MIT", | ||
@@ -47,3 +47,8 @@ "author": "Putro", | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"peerDependencies": { | ||
"@blizzard-api/core": "0.0.3" | ||
}, | ||
"devDependencies": { | ||
"@blizzard-api/core": "0.0.3" | ||
}, | ||
"scripts": { | ||
@@ -50,0 +55,0 @@ "build": "tsup", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
8936
102
0
1
1