Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Aug 14, 2023
1 parent fe020cf commit 50eaca7
Show file tree
Hide file tree
Showing 20 changed files with 132 additions and 23 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ node_modules
/wasm
/examples
/src/util/wz.js
/build.js
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ module.exports = {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/promise-function-async': 'off',
'@typescript-eslint/prefer-includes': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
'@typescript-eslint/class-literal-property-style': 'off',
'@typescript-eslint/member-delimiter-style': ['error', {
multiline: {
delimiter: 'none',
Expand Down
2 changes: 2 additions & 0 deletions docs/api/wz.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ MapleStory WZ reader.
| [WzIntProperty](./wz.wzintproperty.md) | |
| [WzLongProperty](./wz.wzlongproperty.md) | |
| [WzLuaProperty](./wz.wzluaproperty.md) | |
| [WzMainDirectory](./wz.wzmaindirectory.md) | |
| [WzMutableKey](./wz.wzmutablekey.md) | |
| [WzNullProperty](./wz.wznullproperty.md) | |
| [WzObject](./wz.wzobject.md) | |
Expand All @@ -47,6 +48,7 @@ MapleStory WZ reader.
| [ErrorLevel](./wz.errorlevel.md) | |
| [MapleStoryLocalisation](./wz.maplestorylocalisation.md) | |
| [WzBinaryPropertyType](./wz.wzbinarypropertytype.md) | |
| [WzDirectoryType](./wz.wzdirectorytype.md) | |
| [WzFileParseStatus](./wz.wzfileparsestatus.md) | |
| [WzMapleVersion](./wz.wzmapleversion.md) | |
| [WzObjectType](./wz.wzobjecttype.md) | |
Expand Down
22 changes: 22 additions & 0 deletions docs/api/wz.wzdirectorytype.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@tybys/wz](./wz.md) &gt; [WzDirectoryType](./wz.wzdirectorytype.md)

## WzDirectoryType enum


<b>Signature:</b>

```typescript
export declare enum WzDirectoryType
```

## Enumeration Members

| Member | Value | Description |
| --- | --- | --- |
| RetrieveStringFromOffset\_2 | <code>2</code> | |
| UnknownType\_1 | <code>1</code> | |
| WzDirectory\_3 | <code>3</code> | |
| WzImage\_4 | <code>4</code> | |

11 changes: 11 additions & 0 deletions docs/api/wz.wzfile.isunloaded.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@tybys/wz](./wz.md) &gt; [WzFile](./wz.wzfile.md) &gt; [isUnloaded](./wz.wzfile.isunloaded.md)

## WzFile.isUnloaded property

<b>Signature:</b>

```typescript
get isUnloaded(): boolean;
```
1 change: 1 addition & 0 deletions docs/api/wz.wzfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export declare class WzFile extends WzObject
| [fullPath](./wz.wzfile.fullpath.md) | | string | |
| [header](./wz.wzfile.header.md) | | [WzHeader](./wz.wzheader.md) | |
| [is64BitWzFile](./wz.wzfile.is64bitwzfile.md) | | boolean | |
| [isUnloaded](./wz.wzfile.isunloaded.md) | | boolean | |
| [mapleLocaleVersion](./wz.wzfile.maplelocaleversion.md) | | [MapleStoryLocalisation](./wz.maplestorylocalisation.md) | |
| [maplepLocalVersion](./wz.wzfile.mapleplocalversion.md) | | [WzMapleVersion](./wz.wzmapleversion.md) | |
| [mapleStoryPatchVersion](./wz.wzfile.maplestorypatchversion.md) | | number | |
Expand Down
21 changes: 21 additions & 0 deletions docs/api/wz.wzmaindirectory._constructor_.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@tybys/wz](./wz.md) &gt; [WzMainDirectory](./wz.wzmaindirectory.md) &gt; [(constructor)](./wz.wzmaindirectory._constructor_.md)

## WzMainDirectory.(constructor)

Constructs a new instance of the `WzMainDirectory` class

<b>Signature:</b>

```typescript
constructor(file: WzFile, directory?: WzDirectory);
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| file | [WzFile](./wz.wzfile.md) | |
| directory | [WzDirectory](./wz.wzdirectory.md) | <i>(Optional)</i> |

11 changes: 11 additions & 0 deletions docs/api/wz.wzmaindirectory.directory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@tybys/wz](./wz.md) &gt; [WzMainDirectory](./wz.wzmaindirectory.md) &gt; [directory](./wz.wzmaindirectory.directory.md)

## WzMainDirectory.directory property

<b>Signature:</b>

```typescript
get directory(): WzDirectory | null;
```
11 changes: 11 additions & 0 deletions docs/api/wz.wzmaindirectory.file.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@tybys/wz](./wz.md) &gt; [WzMainDirectory](./wz.wzmaindirectory.md) &gt; [file](./wz.wzmaindirectory.file.md)

## WzMainDirectory.file property

<b>Signature:</b>

```typescript
file: WzFile;
```
26 changes: 26 additions & 0 deletions docs/api/wz.wzmaindirectory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@tybys/wz](./wz.md) &gt; [WzMainDirectory](./wz.wzmaindirectory.md)

## WzMainDirectory class


<b>Signature:</b>

```typescript
export declare class WzMainDirectory
```

## Constructors

| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(file, directory)](./wz.wzmaindirectory._constructor_.md) | | Constructs a new instance of the <code>WzMainDirectory</code> class |

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [directory](./wz.wzmaindirectory.directory.md) | | [WzDirectory](./wz.wzdirectory.md) \| null | |
| [file](./wz.wzmaindirectory.file.md) | | [WzFile](./wz.wzfile.md) | |

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@
"access": "public"
},
"devDependencies": {
"@tybys/cgen": "^0.11.1",
"@tybys/cgen": "^0.14.1",
"@tybys/tsgo": "^0.16.0",
"@types/crypto-js": "^4.0.1",
"@types/emscripten": "^1.39.5",
"@types/node": "^14.14.28",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"@types/emscripten": "^1.39.7",
"@types/node": "^18",
"@typescript-eslint/eslint-plugin": "^5.21.0",
"@typescript-eslint/parser": "^5.21.0",
"copy-webpack-plugin": "^6.3.2",
"eslint": "^8.13.0",
"eslint-config-standard-with-typescript": "^21.0.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"typescript": "4.5.5",
"eslint": "^8.47.0",
"eslint-config-standard-with-typescript": "^37.0.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-promise": "^6.1.1",
"typescript": "~4.6",
"webpack": "^4.46.0"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/WzDirectory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { WzObjectType } from './WzObjectType'
* @public
*/
export class WzDirectory extends WzObject {
private readonly images: Set<WzImage> = new Set()
private readonly subDirs: Set<WzDirectory> = new Set()
private readonly images = new Set<WzImage>()
private readonly subDirs = new Set<WzDirectory>()
public reader: WzBinaryReader
public offset: number = 0
public name: string
Expand Down
2 changes: 1 addition & 1 deletion src/WzImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class WzImage extends WzObject implements IPropertyContainer {
return this.name.endsWith('.lua')
}

private readonly properties: Set<WzImageProperty> = new Set()
private readonly properties = new Set<WzImageProperty>()
public get wzProperties (): Set<WzImageProperty> {
if (!this.parsed) throw new Error('Image has not been parsed yet')
return this.properties
Expand Down
1 change: 1 addition & 0 deletions src/WzMainDirectory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { WzDirectory } from './WzDirectory'
import type { WzFile } from './WzFile'

/** @public */
export class WzMainDirectory {
public file: WzFile
private readonly _directory: WzDirectory | undefined
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
* @packageDocumentation
*/

export { IDisposable } from './util/IDisposable'
export type { IDisposable } from './util/IDisposable'
export { BaseError } from './util/BaseError'
export { ErrorLevel, ErrorLogger, WzError } from './util/ErrorLogger'
export { WzMutableKey } from './util/WzMutableKey'
export { WzBinaryReader } from './util/WzBinaryReader'
export { NotImplementedError } from './util/NotImplementedError'
export { Canvas } from './util/Canvas'
export { IPropertyContainer } from './IPropertyContainer'
export type { IPropertyContainer } from './IPropertyContainer'
export { WzLuaProperty } from './properties/WzLuaProperty'
export { WzBinaryPropertyType } from './properties/WzBinaryPropertyType'
export { WzBinaryProperty } from './properties/WzBinaryProperty'
Expand Down Expand Up @@ -39,7 +39,7 @@ export { WzImage } from './WzImage'
export { WzDirectory } from './WzDirectory'
export { WzDirectoryType } from './WzDirectoryType'
export { WzFileParseStatus, getErrorDescription } from './WzFileParseStatus'
export { IWzParseResult, WzFile, MapleStoryLocalisation } from './WzFile'
export { type IWzParseResult, WzFile, MapleStoryLocalisation } from './WzFile'
export { WzMainDirectory } from './WzMainDirectory'

export { walkWzFileAsync, walkDirectory, walkPropertyContainer } from './walk'
Expand Down
2 changes: 1 addition & 1 deletion src/properties/WzCanvasProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class WzCanvasProperty extends WzExtended implements IPropertyContainer {
public get ltPropertyName (): string { return 'lt' }
public get animationDelayPropertyName (): string { return 'delay' }

private readonly properties: Set<WzImageProperty> = new Set()
private readonly properties = new Set<WzImageProperty>()

public get wzProperties (): Set<WzImageProperty> {
return this.properties
Expand Down
2 changes: 1 addition & 1 deletion src/properties/WzConvexProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { NotImplementedError } from '../util/NotImplementedError'
* @public
*/
export class WzConvexProperty extends WzExtended implements IPropertyContainer {
private readonly properties: Set<WzImageProperty> = new Set()
private readonly properties = new Set<WzImageProperty>()

public get wzProperties (): Set<WzImageProperty> {
return this.properties
Expand Down
2 changes: 1 addition & 1 deletion src/properties/WzSubProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { NotImplementedError } from '../util/NotImplementedError'
* @public
*/
export class WzSubProperty extends WzExtended implements IPropertyContainer {
private readonly properties: Set<WzImageProperty> = new Set()
private readonly properties = new Set<WzImageProperty>()

public get wzProperties (): Set<WzImageProperty> {
return this.properties
Expand Down
2 changes: 1 addition & 1 deletion src/properties/WzUOLProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class WzUOLProperty extends WzExtended {
if (this.linkVal == null) {
const paths = this.val.split(/[\\/]/)
this.linkVal = this.parent as WzObject
// @ts-expect-error
// @ts-expect-error ignore
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const asdf = (this.parent as WzObject).fullPath
for (const path of paths) {
Expand Down
4 changes: 2 additions & 2 deletions src/util/ErrorLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class WzError extends BaseError {

/** @public */
export class ErrorLogger {
private static readonly _errorList: Set<WzError> = new Set()
private static readonly _errorList = new Set<WzError>()

public static log (level: ErrorLevel, message: string): void {
this._errorList.add(new WzError(level, message))
Expand All @@ -36,7 +36,7 @@ export class ErrorLogger {
}

public static clearErrors (): void {
return this._errorList.clear()
this._errorList.clear()
}

public static saveToFile (file: string): void {
Expand Down

0 comments on commit 50eaca7

Please sign in to comment.