Skip to content

Commit

Permalink
misc: fixed typo in options
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinal committed Sep 19, 2024
1 parent 58ef616 commit 571c887
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/assetpack/src/spine/spineAtlasCacheBuster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface SpineAtlasCacheBusterOptions {
* Set this value to true if .atlas file and .json file must have the same file names (including the HASH in the name).
* This is important for the Pixi spineTextureAtlasLoader function
*/
jasonAndAltasHasTheSameNames?: boolean;
jsonAndAltasHasTheSameNames?: boolean;
}

/**
Expand All @@ -36,7 +36,7 @@ export function spineAtlasCacheBuster(
_options: SpineAtlasCacheBusterOptions = {},
): AssetPipe<SpineAtlasCacheBusterOptions> {
const defaultOptions = {
jasonAndAltasHasTheSameNames: false,
jsonAndAltasHasTheSameNames: false,
..._options,
};

Expand Down Expand Up @@ -109,7 +109,7 @@ export function spineAtlasCacheBuster(

atlasAsset.buffer = atlasView.buffer;

if (options.jasonAndAltasHasTheSameNames) {
if (options.jsonAndAltasHasTheSameNames) {
atlasAsset.path = atlasAsset.path.replace(originalHash, jsonAsset.hash);
} else {
atlasAsset.path = atlasAsset.path.replace(originalHash, atlasAsset.hash);
Expand Down

0 comments on commit 571c887

Please sign in to comment.