@pixi/assets
Advanced tools
Comparing version 7.2.0-rc.3 to 7.2.0
@@ -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) { |
{ | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
458959
4248
0