Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@paxperscientiam/generate-phaser3-filepack

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paxperscientiam/generate-phaser3-filepack - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

7

package.json

@@ -6,3 +6,4 @@ {

"devDependencies": {
"@types/node": "^20.8.7",
"@types/node": "^20.9.0",
"ts-to-zod": "^3.2.0",
"tsup": "^7.2.0"

@@ -13,3 +14,3 @@ },

"is-image": "^4.0.0",
"ts-to-zod": "^3.2.0",
"is-video": "^2.0.0",
"zod": "^3.22.4"

@@ -21,3 +22,3 @@ },

],
"version": "4.0.0",
"version": "5.0.0",
"scripts": {

@@ -24,0 +25,0 @@ "build": "ts-to-zod && tsup --cjsInterop",

@@ -45,17 +45,59 @@ [Phaser 3](https://github.com/photonstorm/phaser) Pack File Generator

## Notes
- this script does NOT write anything to file; it's up to you to do so.
This script does NOT write anything to file; it's up to you to do so.
Is you set a "hint", it's assumed accurate.
### Auto inferred types
- [x] image (:IPhaserFilePackGenericAsset)
- [ ] atlas
- [ ] atlasXML
- [ ] audioSprite
- [ ] htmlTexture
- [ ] multiatlas
- [ ] obj
- [ ] spritesheet
- [ ] tilemapCSV
- [ ] tilemapImpact
- [ ] tilemapTiledJSON
- [ ] unityAtlas
- [x] audio (:IPhaserFilePackGenericAsset)
- [x] binary (:IPhaserFilePackBinaryAsset)
- [x] css
- [ ] binary (:IPhaserFilePackBinaryAsset)
- [ ] html
- [ ] json
- [ ] svg
- [ ] txt
- [x] glsl
- [x] html
- [x] image (:IPhaserFilePackGenericAsset)
- [x] json
- [x] svg
- [x] text
- [x] video
- [x] xml
### Hint-reliant types
- [x] atlas
- [x] bitmapFont
- [x] css
- [x] html
- [x] json
- [x] svg
- [x] text
- [x] xml
### Improvements
- [ ] add check to prevent changing keys of unmoved files
- [x] filter out commonsystem and temp files. EG .DS_Store
- [ ] post process adjustments.
- [ ] allow set `asBlob` and `noAudio` in post-processing.
- [ ] use phaser's type for development testing
### Bugs
- [x] only selectively collapse asset set (EG: collapse audio, but not toher types with files with same file-basenames)
- [ ] filter out unknowns explicitly
- [ ] review warnings about key uniqueness. EG [this on videos](https://newdocs.phaser.io/docs/3.54.0/Phaser.Loader.LoaderPlugin#video).
## Contributors

@@ -62,0 +104,0 @@ - All the programmers Copilot ripped off

@@ -5,5 +5,5 @@ /**

export interface IConfigAssetTarget {
hint?: "audio"|"image"|"bitmapFont"|"binary"|"css"|string
key: string
basePath: string
hint?: "audio"|"image"|"bitmapFont"|"binary"|"css"|string
extensions?: string

@@ -30,5 +30,10 @@ ignoredPaths?: string|string[]

url: string | string[]
focalKey?: string
}
interface Uint8Array {
" buffer_kind"?: "uint8";
}
/**

@@ -38,8 +43,18 @@ * @toExtract

export type IPhaserFilePackBinaryAsset = {
type: string
type: "binary"
key: string
url: string
dataType: Uint8Array|unknown
dataType: Uint8Array
}
/**
* @toExtract
*/
export type IPhaserFilePackVideoAsset = {
type: "video"
asBlob?: boolean
noAudio?: boolean
key: string
url: string | string[]
}

@@ -50,4 +65,9 @@

*/
export type IPhaserFilePackAsset = IPhaserFilePackGenericAsset & IPhaserFilePackBinaryAsset & IPhaserFilePackVideoAsset
/**
* @toExtract
*/
export type IPhaserFilePackFiles = {
files: IPhaserFilePackGenericAsset[]
files: IPhaserFilePackAsset[]
}

@@ -54,0 +74,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc