New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2.0-rc.3 to 7.2.0

6

lib/loader/parsers/loadJson.js

@@ -6,4 +6,8 @@ 'use strict';

var core = require('@pixi/core');
var checkDataUrl = require('../../utils/checkDataUrl.js');
var checkExtension = require('../../utils/checkExtension.js');
var LoaderParser = require('./LoaderParser.js');
const validJSONExtension = ".json";
const validJSONMIME = "application/json";
const loadJson = {

@@ -16,3 +20,3 @@ extension: {

test(url) {
return core.utils.path.extname(url).toLowerCase() === ".json";
return checkDataUrl.checkDataUrl(url, validJSONMIME) || checkExtension.checkExtension(url, validJSONExtension);
},

@@ -19,0 +23,0 @@ async load(url) {

@@ -6,4 +6,8 @@ 'use strict';

var core = require('@pixi/core');
var checkDataUrl = require('../../utils/checkDataUrl.js');
var checkExtension = require('../../utils/checkExtension.js');
var LoaderParser = require('./LoaderParser.js');
const validTXTExtension = ".txt";
const validTXTMIME = "text/plain";
const loadTxt = {

@@ -16,3 +20,3 @@ name: "loadTxt",

test(url) {
return core.utils.path.extname(url).toLowerCase() === ".txt";
return checkDataUrl.checkDataUrl(url, validTXTMIME) || checkExtension.checkExtension(url, validTXTExtension);
},

@@ -19,0 +23,0 @@ async load(url) {

@@ -6,2 +6,4 @@ 'use strict';

var core = require('@pixi/core');
var checkDataUrl = require('../../../utils/checkDataUrl.js');
var checkExtension = require('../../../utils/checkExtension.js');
var LoaderParser = require('../LoaderParser.js');

@@ -11,2 +13,4 @@ var loadTextures = require('./loadTextures.js');

const validSVGExtension = ".svg";
const validSVGMIME = "image/svg+xml";
const loadSVG = {

@@ -19,3 +23,3 @@ extension: {

test(url) {
return core.utils.path.extname(url).toLowerCase() === ".svg";
return checkDataUrl.checkDataUrl(url, validSVGMIME) || checkExtension.checkExtension(url, validSVGExtension);
},

@@ -22,0 +26,0 @@ async testParse(data) {

6

package.json
{
"name": "@pixi/assets",
"version": "7.2.0-rc.3",
"version": "7.2.0",
"description": "Asset manager for PixiJS, loading resolving and Cacheing",

@@ -50,5 +50,5 @@ "keywords": [

"peerDependencies": {
"@pixi/core": "7.2.0-rc.3",
"@pixi/utils": "7.2.0-rc.3"
"@pixi/core": "7.2.0",
"@pixi/utils": "7.2.0"
}
}

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

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

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