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

@pixi/assets

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/assets - npm Package Compare versions

Comparing version 7.3.2 to 7.3.3

6

lib/Assets.d.ts

@@ -8,3 +8,3 @@ import { Cache } from './cache/Cache';

import type { ArrayOr, AssetsBundle, AssetsManifest, LoadParserName, ResolvedAsset, UnresolvedAsset } from './types';
export declare type ProgressCallback = (progress: number) => void;
export type ProgressCallback = (progress: number) => void;
/**

@@ -193,3 +193,3 @@ * Extensible preferences that can be used, for instance, when configuring loaders.

*
* await Asset.init({ manifest });
* await Assets.init({ manifest });
*

@@ -363,3 +363,3 @@ * // Load a bundle...

*
* await Asset.init({ manifest });
* await Assets.init({ manifest });
*

@@ -366,0 +366,0 @@ * // Load a bundle...

@@ -18,3 +18,3 @@ "use strict";

if (this._initialized) {
console.warn("[Assets]AssetManager already initialized, did you load before calling this Asset.init()?");
console.warn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");
return;

@@ -110,3 +110,3 @@ }

*
* await Asset.init({ manifest });
* await Assets.init({ manifest });
*

@@ -113,0 +113,0 @@ * // Load a bundle...

@@ -1,2 +0,1 @@

/// <reference types="css-font-loading-module" />
import type { LoaderParser } from './LoaderParser';

@@ -7,3 +6,3 @@ /**

*/
export declare type LoadFontData = {
export type LoadFontData = {
family: string;

@@ -10,0 +9,0 @@ display: string;

@@ -7,3 +7,3 @@ import type { AssetsBundle, AssetsManifest, ResolvedAsset, UnresolvedAsset, UnresolvedAssetObject } from './types';

*/
export declare type ResolveAsset<T = any> = ResolvedAsset<T>;
export type ResolveAsset<T = any> = ResolvedAsset<T>;
/**

@@ -14,3 +14,3 @@ * Please use `ResolvedAsset` instead.

*/
export declare type LoadAsset<T = any> = ResolvedAsset<T>;
export type LoadAsset<T = any> = ResolvedAsset<T>;
/**

@@ -21,3 +21,3 @@ * Please use `AssetsBundle` instead.

*/
export declare type ResolverBundle = AssetsBundle;
export type ResolverBundle = AssetsBundle;
/**

@@ -28,3 +28,3 @@ * Please use `AssetsManifest` instead.

*/
export declare type ResolverManifest = AssetsManifest;
export type ResolverManifest = AssetsManifest;
/**

@@ -35,3 +35,3 @@ * Please use `UnresolvedAsset[]` instead.

*/
export declare type ResolverAssetsArray = UnresolvedAsset[];
export type ResolverAssetsArray = UnresolvedAsset[];
/**

@@ -42,2 +42,2 @@ * Please use `UnresolvedAssetObject` instead.

*/
export declare type ResolverAssetsObject = UnresolvedAssetObject;
export type ResolverAssetsObject = UnresolvedAssetObject;

@@ -1,2 +0,2 @@

export declare type ArrayOr<T> = T | T[];
export type ArrayOr<T> = T | T[];
/**

@@ -6,3 +6,3 @@ * Names of the parsers that are built into PIXI.

*/
export declare type LoadParserName = 'loadJson' | 'loadSVG' | 'loadTextures' | 'loadTxt' | 'loadVideo' | 'loadWebFont' | string;
export type LoadParserName = 'loadJson' | 'loadSVG' | 'loadTextures' | 'loadTxt' | 'loadVideo' | 'loadWebFont' | string;
/**

@@ -40,6 +40,6 @@ * A fully resolved asset, with all the information needed to load it.

*/
export declare type ResolvedSrc = Pick<ResolvedAsset, 'src' | 'srcs' | 'format' | 'loadParser' | 'data'> & {
export type ResolvedSrc = Pick<ResolvedAsset, 'src' | 'srcs' | 'format' | 'loadParser' | 'data'> & {
[key: string]: any;
};
export declare type AssetSrc = ArrayOr<string> | ArrayOr<ResolvedSrc>;
export type AssetSrc = ArrayOr<string> | ArrayOr<ResolvedSrc>;
/**

@@ -69,3 +69,3 @@ * An asset that has not been resolved yet.

*/
export declare type UnresolvedAssetObject = Omit<UnresolvedAsset, 'name' | 'alias'>;
export type UnresolvedAssetObject = Omit<UnresolvedAsset, 'name' | 'alias'>;
/**

@@ -72,0 +72,0 @@ * Structure of a bundle found in a manifest file

{
"name": "@pixi/assets",
"version": "7.3.2",
"version": "7.3.3",
"description": "Asset manager for PixiJS, loading resolving and Cacheing",

@@ -47,8 +47,7 @@ "keywords": [

"dependencies": {
"@types/css-font-loading-module": "^0.0.7"
"@types/css-font-loading-module": "^0.0.12"
},
"peerDependencies": {
"@pixi/core": "7.3.2",
"@pixi/utils": "7.3.2"
"@pixi/core": "7.3.3"
}
}

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

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