Comparing version 0.0.2 to 0.0.3
@@ -1,2 +0,2 @@ | ||
export interface BaseResponse { | ||
export interface IBaseResponse { | ||
statusCode: number; | ||
@@ -7,3 +7,3 @@ statusMessage: string; | ||
export interface ErrorResponse extends BaseResponse { | ||
export interface IErrorResponse extends IBaseResponse { | ||
error?: string | undefined; | ||
@@ -18,3 +18,3 @@ } | ||
constructor(errorResponse: ErrorResponse) { | ||
constructor(errorResponse: IErrorResponse) { | ||
super(errorResponse.message); | ||
@@ -21,0 +21,0 @@ |
@@ -1,4 +0,4 @@ | ||
import { BaseResponse } from "./base"; | ||
import { IBaseResponse } from "./base"; | ||
export interface Construction { | ||
export interface IConstruction { | ||
time: string; | ||
@@ -8,4 +8,4 @@ ships: string[]; | ||
export interface BuildResponse extends BaseResponse { | ||
construction: Construction; | ||
export interface IBuildResponse extends IBaseResponse { | ||
construction: IConstruction; | ||
} |
@@ -1,4 +0,4 @@ | ||
import { BaseResponse } from "./base"; | ||
import { IBaseResponse } from "./base"; | ||
export interface Names { | ||
export interface INames { | ||
full: string | null; | ||
@@ -10,3 +10,3 @@ en: string | null; | ||
export interface Skins { | ||
export interface ISkins { | ||
title: string | null; | ||
@@ -16,3 +16,3 @@ image: string | null; | ||
export interface Stars { | ||
export interface IStars { | ||
value: string | null; | ||
@@ -22,10 +22,10 @@ count: number; | ||
export interface Ship { | ||
export interface IShip { | ||
id: string | null; | ||
names: Names; | ||
names: INames; | ||
thumbnail: string; | ||
skins: Skins; | ||
skins: ISkins; | ||
buildTime: string | null; | ||
rarity: string | null; | ||
stars: Stars; | ||
stars: IStars; | ||
class: string | null; | ||
@@ -36,4 +36,4 @@ nationality: string | null; | ||
export interface ShipResponse extends BaseResponse { | ||
ship: Ship; | ||
export interface IShipResponse extends IBaseResponse { | ||
ship: IShip; | ||
} |
{ | ||
"name": "azurlane", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Api wrapper for the azur lane api", | ||
"main": "build/index.js", | ||
"homepage": "https://github.com/KurozeroPB/AzurLane#readme", | ||
"main": "dist/lib/index.js", | ||
"types": "dist/lib/*.d.js", | ||
"homepage": "https://kurozeropb.github.io/AzurLane/docs/index.html", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/KurozeroPB/AzurLane.git" | ||
"url": "git+https://github.com/KurozeroPB/AzurLane.git" | ||
}, | ||
@@ -24,5 +25,8 @@ "bugs": { | ||
"publish": "npm publish", | ||
"prepare": "yarn compile", | ||
"compile": "yarn check && yarn clean && tsc -p .", | ||
"test": "node test/index.js", | ||
"prepare": "yarn build", | ||
"build": "yarn check && yarn clean && tsc", | ||
"example": "node test/example.js", | ||
"test": "mocha", | ||
"pretest": "yarn build", | ||
"docs": "typedoc --out ./docs ./lib --readme ./README.md", | ||
"check": "gts check", | ||
@@ -37,5 +41,8 @@ "clean": "gts clean", | ||
"@types/node": "^11.12.2", | ||
"gh-pages": "^2.0.1", | ||
"gts": "^0.9.0", | ||
"mocha": "^6.0.2", | ||
"typedoc": "^0.14.2", | ||
"typescript": "^3.4.1" | ||
} | ||
} |
@@ -6,3 +6,3 @@ # AzurLane | ||
```js | ||
const { AzurLane } = require("azurlane"); | ||
const AzurLane = require("azurlane"); | ||
const al = new AzurLane(); | ||
@@ -9,0 +9,0 @@ |
@@ -10,15 +10,9 @@ { | ||
"moduleResolution": "node", | ||
"sourceMap": true, | ||
"noImplicitReturns": false, | ||
"sourceMap": false, | ||
"noImplicitReturns": true, | ||
"resolveJsonModule": true, | ||
"declaration": true, | ||
"outDir": "build", | ||
"paths": { | ||
"*": [ | ||
"node_modules/*" | ||
] | ||
} | ||
"outDir": "./dist" | ||
}, | ||
"include": [ | ||
"*.ts", | ||
"lib/**/*" | ||
@@ -25,0 +19,0 @@ ] |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
555999
49
1605
6
3
4