@pixi-spine/loader-uni
Advanced tools
Comparing version 3.0.16 to 3.1.0
@@ -33,3 +33,4 @@ /// <reference path="./global.d.ts" /> | ||
VER38 = 38, | ||
VER40 = 40 | ||
VER40 = 40, | ||
VER41 = 41 | ||
} | ||
@@ -36,0 +37,0 @@ |
/* eslint-disable */ | ||
/*! | ||
* @pixi-spine/loader-uni - v3.0.16 | ||
* Compiled Tue, 28 Jun 2022 15:02:47 UTC | ||
* @pixi-spine/loader-uni - v3.1.0 | ||
* Compiled Wed, 03 Aug 2022 17:00:08 UTC | ||
* | ||
@@ -17,3 +17,3 @@ * @pixi-spine/loader-uni is licensed under the MIT License. | ||
import * as spine37 from '@pixi-spine/runtime-3.7'; | ||
import * as spine40 from '@pixi-spine/runtime-4.0'; | ||
import * as spine41 from '@pixi-spine/runtime-4.1'; | ||
@@ -60,2 +60,3 @@ /*! ***************************************************************************** | ||
SPINE_VERSION[SPINE_VERSION["VER40"] = 40] = "VER40"; | ||
SPINE_VERSION[SPINE_VERSION["VER41"] = 41] = "VER41"; | ||
})(SPINE_VERSION || (SPINE_VERSION = {})); | ||
@@ -77,2 +78,5 @@ /** | ||
} | ||
if (ver3 === '4.1') { | ||
return SPINE_VERSION.VER41; | ||
} | ||
// try parse old versions with 3.7 | ||
@@ -103,4 +107,4 @@ if (verNum < SPINE_VERSION.VER37) { | ||
ver = detectSpineVersion(version); | ||
if (ver === SPINE_VERSION.VER40) { | ||
parser = new spine40.SkeletonBinary(new spine40.AtlasAttachmentLoader(atlas)); | ||
if (ver === SPINE_VERSION.VER40 || ver === SPINE_VERSION.VER41) { | ||
parser = new spine41.SkeletonBinary(new spine41.AtlasAttachmentLoader(atlas)); | ||
} | ||
@@ -130,4 +134,4 @@ if (!parser) { | ||
} | ||
if (ver === SPINE_VERSION.VER40) { | ||
parser = new spine40.SkeletonJson(new spine40.AtlasAttachmentLoader(atlas)); | ||
if (ver === SPINE_VERSION.VER40 || ver === SPINE_VERSION.VER41) { | ||
parser = new spine41.SkeletonJson(new spine41.AtlasAttachmentLoader(atlas)); | ||
} | ||
@@ -186,4 +190,4 @@ if (!parser) { | ||
} | ||
if (ver === SPINE_VERSION.VER40) { | ||
spine = spine40; | ||
if (ver === SPINE_VERSION.VER40 || ver === SPINE_VERSION.VER41) { | ||
spine = spine41; | ||
} | ||
@@ -190,0 +194,0 @@ if (!spine) { |
/* eslint-disable */ | ||
/*! | ||
* @pixi-spine/loader-uni - v3.0.16 | ||
* Compiled Tue, 28 Jun 2022 15:02:47 UTC | ||
* @pixi-spine/loader-uni - v3.1.0 | ||
* Compiled Wed, 03 Aug 2022 17:00:08 UTC | ||
* | ||
@@ -21,3 +21,3 @@ * @pixi-spine/loader-uni is licensed under the MIT License. | ||
var spine37 = require('@pixi-spine/runtime-3.7'); | ||
var spine40 = require('@pixi-spine/runtime-4.0'); | ||
var spine41 = require('@pixi-spine/runtime-4.1'); | ||
@@ -44,3 +44,3 @@ function _interopNamespace(e) { | ||
var spine37__namespace = /*#__PURE__*/_interopNamespace(spine37); | ||
var spine40__namespace = /*#__PURE__*/_interopNamespace(spine40); | ||
var spine41__namespace = /*#__PURE__*/_interopNamespace(spine41); | ||
@@ -87,2 +87,3 @@ /*! ***************************************************************************** | ||
SPINE_VERSION[SPINE_VERSION["VER40"] = 40] = "VER40"; | ||
SPINE_VERSION[SPINE_VERSION["VER41"] = 41] = "VER41"; | ||
})(exports.SPINE_VERSION || (exports.SPINE_VERSION = {})); | ||
@@ -104,2 +105,5 @@ /** | ||
} | ||
if (ver3 === '4.1') { | ||
return exports.SPINE_VERSION.VER41; | ||
} | ||
// try parse old versions with 3.7 | ||
@@ -130,4 +134,4 @@ if (verNum < exports.SPINE_VERSION.VER37) { | ||
ver = detectSpineVersion(version); | ||
if (ver === exports.SPINE_VERSION.VER40) { | ||
parser = new spine40__namespace.SkeletonBinary(new spine40__namespace.AtlasAttachmentLoader(atlas)); | ||
if (ver === exports.SPINE_VERSION.VER40 || ver === exports.SPINE_VERSION.VER41) { | ||
parser = new spine41__namespace.SkeletonBinary(new spine41__namespace.AtlasAttachmentLoader(atlas)); | ||
} | ||
@@ -157,4 +161,4 @@ if (!parser) { | ||
} | ||
if (ver === exports.SPINE_VERSION.VER40) { | ||
parser = new spine40__namespace.SkeletonJson(new spine40__namespace.AtlasAttachmentLoader(atlas)); | ||
if (ver === exports.SPINE_VERSION.VER40 || ver === exports.SPINE_VERSION.VER41) { | ||
parser = new spine41__namespace.SkeletonJson(new spine41__namespace.AtlasAttachmentLoader(atlas)); | ||
} | ||
@@ -213,4 +217,4 @@ if (!parser) { | ||
} | ||
if (ver === exports.SPINE_VERSION.VER40) { | ||
spine = spine40__namespace; | ||
if (ver === exports.SPINE_VERSION.VER40 || ver === exports.SPINE_VERSION.VER41) { | ||
spine = spine41__namespace; | ||
} | ||
@@ -217,0 +221,0 @@ if (!spine) { |
{ | ||
"name": "@pixi-spine/loader-uni", | ||
"version": "3.0.16", | ||
"version": "3.1.0", | ||
"description": "Pixi integration with EsotericSoftware Spine, big, contains all runtimes", | ||
@@ -13,7 +13,7 @@ "main": "lib/loader-uni.js", | ||
"dependencies": { | ||
"@pixi-spine/base": "~3.0.16", | ||
"@pixi-spine/loader-base": "~3.0.16", | ||
"@pixi-spine/runtime-3.7": "~3.0.16", | ||
"@pixi-spine/runtime-3.8": "~3.0.16", | ||
"@pixi-spine/runtime-4.0": "~3.0.16" | ||
"@pixi-spine/base": "~3.1.0", | ||
"@pixi-spine/loader-base": "~3.1.0", | ||
"@pixi-spine/runtime-3.7": "~3.1.0", | ||
"@pixi-spine/runtime-3.8": "~3.1.0", | ||
"@pixi-spine/runtime-4.1": "~3.1.0" | ||
}, | ||
@@ -20,0 +20,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67603
454
+ Added@pixi-spine/base@3.1.2(transitive)
+ Added@pixi-spine/loader-base@3.1.2(transitive)
+ Added@pixi-spine/runtime-3.7@3.1.2(transitive)
+ Added@pixi-spine/runtime-3.8@3.1.2(transitive)
+ Added@pixi-spine/runtime-4.1@3.1.2(transitive)
- Removed@pixi-spine/runtime-4.0@~3.0.16
- Removed@pixi-spine/base@3.0.16(transitive)
- Removed@pixi-spine/loader-base@3.0.16(transitive)
- Removed@pixi-spine/runtime-3.7@3.0.16(transitive)
- Removed@pixi-spine/runtime-3.8@3.0.16(transitive)
- Removed@pixi-spine/runtime-4.0@3.0.16(transitive)
- Removed@pixi/app@6.5.10(transitive)
- Removedmini-signals@1.2.0(transitive)
- Removedparse-uri@1.0.9(transitive)
- Removedresource-loader@3.0.1(transitive)
Updated@pixi-spine/base@~3.1.0