melonjs 16.1.0 → 16.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/melonjs.mjs/_virtual/_commonjsHelpers.js +1 -1
- package/dist/melonjs.mjs/_virtual/earcut.js +1 -1
- package/dist/melonjs.mjs/_virtual/howler.js +1 -1
- package/dist/melonjs.mjs/_virtual/index.js +1 -1
- package/dist/melonjs.mjs/_virtual/re.js +10 -0
- package/dist/melonjs.mjs/application/application.js +1 -1
- package/dist/melonjs.mjs/application/header.js +1 -1
- package/dist/melonjs.mjs/application/resize.js +1 -1
- package/dist/melonjs.mjs/application/settings.js +1 -1
- package/dist/melonjs.mjs/audio/audio.js +1 -1
- package/dist/melonjs.mjs/camera/camera2d.js +1 -1
- package/dist/melonjs.mjs/const.js +1 -1
- package/dist/melonjs.mjs/geometries/ellipse.js +1 -1
- package/dist/melonjs.mjs/geometries/line.js +1 -1
- package/dist/melonjs.mjs/geometries/path2d.js +1 -1
- package/dist/melonjs.mjs/geometries/point.js +1 -1
- package/dist/melonjs.mjs/geometries/poly.js +1 -1
- package/dist/melonjs.mjs/geometries/rectangle.js +1 -1
- package/dist/melonjs.mjs/geometries/roundrect.js +1 -1
- package/dist/melonjs.mjs/geometries/toarccanvas.js +1 -1
- package/dist/melonjs.mjs/index.js +2 -2
- package/dist/melonjs.mjs/input/gamepad.js +1 -1
- package/dist/melonjs.mjs/input/input.js +1 -1
- package/dist/melonjs.mjs/input/keyboard.js +1 -1
- package/dist/melonjs.mjs/input/pointer.js +1 -1
- package/dist/melonjs.mjs/input/pointerevent.js +1 -1
- package/dist/melonjs.mjs/lang/console.js +1 -1
- package/dist/melonjs.mjs/lang/deprecated.js +1 -1
- package/dist/melonjs.mjs/level/level.js +1 -1
- package/dist/melonjs.mjs/level/tiled/TMXGroup.js +1 -1
- package/dist/melonjs.mjs/level/tiled/TMXLayer.js +1 -1
- package/dist/melonjs.mjs/level/tiled/TMXObject.js +1 -1
- package/dist/melonjs.mjs/level/tiled/TMXTile.js +1 -1
- package/dist/melonjs.mjs/level/tiled/TMXTileMap.js +1 -1
- package/dist/melonjs.mjs/level/tiled/TMXTileset.js +1 -1
- package/dist/melonjs.mjs/level/tiled/TMXTilesetGroup.js +1 -1
- package/dist/melonjs.mjs/level/tiled/TMXUtils.js +1 -1
- package/dist/melonjs.mjs/level/tiled/constants.js +1 -1
- package/dist/melonjs.mjs/level/tiled/renderer/TMXHexagonalRenderer.js +1 -1
- package/dist/melonjs.mjs/level/tiled/renderer/TMXIsometricRenderer.js +1 -1
- package/dist/melonjs.mjs/level/tiled/renderer/TMXOrthogonalRenderer.js +1 -1
- package/dist/melonjs.mjs/level/tiled/renderer/TMXRenderer.js +1 -1
- package/dist/melonjs.mjs/level/tiled/renderer/TMXStaggeredRenderer.js +1 -1
- package/dist/melonjs.mjs/level/tiled/renderer/autodetect.js +1 -1
- package/dist/melonjs.mjs/loader/cache.js +1 -1
- package/dist/melonjs.mjs/loader/loader.js +1 -1
- package/dist/melonjs.mjs/loader/loadingscreen.js +1 -1
- package/dist/melonjs.mjs/loader/melonjs_logo.png.js +1 -1
- package/dist/melonjs.mjs/loader/parsers/binary.js +1 -1
- package/dist/melonjs.mjs/loader/parsers/fetchdata.js +1 -1
- package/dist/melonjs.mjs/loader/parsers/fontface.js +1 -1
- package/dist/melonjs.mjs/loader/parsers/image.js +1 -1
- package/dist/melonjs.mjs/loader/parsers/json.js +1 -1
- package/dist/melonjs.mjs/loader/parsers/script.js +1 -1
- package/dist/melonjs.mjs/loader/parsers/tmx.js +1 -1
- package/dist/melonjs.mjs/loader/parsers/video.js +3 -2
- package/dist/melonjs.mjs/loader/settings.js +1 -1
- package/dist/melonjs.mjs/math/color.js +1 -1
- package/dist/melonjs.mjs/math/math.js +1 -1
- package/dist/melonjs.mjs/math/matrix2.js +1 -1
- package/dist/melonjs.mjs/math/matrix3.js +1 -1
- package/dist/melonjs.mjs/math/observable_vector2.js +1 -1
- package/dist/melonjs.mjs/math/observable_vector3.js +1 -1
- package/dist/melonjs.mjs/math/vector2.js +1 -1
- package/dist/melonjs.mjs/math/vector3.js +1 -1
- package/dist/melonjs.mjs/node_modules/@teppeis/multimaps/dist/esm/arraymultimap.js +1 -1
- package/dist/melonjs.mjs/node_modules/@teppeis/multimaps/dist/esm/multimap.js +1 -1
- package/dist/melonjs.mjs/node_modules/earcut/src/earcut.js +1 -1
- package/dist/melonjs.mjs/node_modules/eventemitter3/index.js +1 -1
- package/dist/melonjs.mjs/node_modules/eventemitter3/index2.js +1 -1
- package/dist/melonjs.mjs/node_modules/howler/dist/howler.js +1 -1
- package/dist/melonjs.mjs/node_modules/semver/classes/comparator.js +165 -0
- package/dist/melonjs.mjs/node_modules/semver/classes/range.js +564 -0
- package/dist/melonjs.mjs/node_modules/semver/classes/semver.js +317 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/clean.js +17 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/cmp.js +68 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/coerce.js +73 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/compare-build.js +18 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/compare-loose.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/compare.js +16 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/diff.js +76 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/eq.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/gt.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/gte.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/inc.js +30 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/lt.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/lte.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/major.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/minor.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/neq.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/parse.js +27 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/patch.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/prerelease.js +17 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/rcompare.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/rsort.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/satisfies.js +21 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/sort.js +14 -0
- package/dist/melonjs.mjs/node_modules/semver/functions/valid.js +17 -0
- package/dist/melonjs.mjs/node_modules/semver/index.js +140 -0
- package/dist/melonjs.mjs/node_modules/semver/internal/constants.js +44 -0
- package/dist/melonjs.mjs/node_modules/semver/internal/debug.js +18 -0
- package/dist/melonjs.mjs/node_modules/semver/internal/identifiers.js +32 -0
- package/dist/melonjs.mjs/node_modules/semver/internal/parse-options.js +24 -0
- package/dist/melonjs.mjs/node_modules/semver/internal/re.js +234 -0
- package/dist/melonjs.mjs/node_modules/semver/node_modules/lru-cache/index.js +352 -0
- package/dist/melonjs.mjs/node_modules/semver/node_modules/yallist/iterator.js +24 -0
- package/dist/melonjs.mjs/node_modules/semver/node_modules/yallist/yallist.js +444 -0
- package/dist/melonjs.mjs/node_modules/semver/ranges/gtr.js +15 -0
- package/dist/melonjs.mjs/node_modules/semver/ranges/intersects.js +18 -0
- package/dist/melonjs.mjs/node_modules/semver/ranges/ltr.js +15 -0
- package/dist/melonjs.mjs/node_modules/semver/ranges/max-satisfying.js +37 -0
- package/dist/melonjs.mjs/node_modules/semver/ranges/min-satisfying.js +36 -0
- package/dist/melonjs.mjs/node_modules/semver/ranges/min-version.js +74 -0
- package/dist/melonjs.mjs/node_modules/semver/ranges/outside.js +98 -0
- package/dist/melonjs.mjs/node_modules/semver/ranges/simplify.js +59 -0
- package/dist/melonjs.mjs/node_modules/semver/ranges/subset.js +261 -0
- package/dist/melonjs.mjs/node_modules/semver/ranges/to-comparators.js +19 -0
- package/dist/melonjs.mjs/node_modules/semver/ranges/valid.js +22 -0
- package/dist/melonjs.mjs/particles/emitter.js +1 -1
- package/dist/melonjs.mjs/particles/particle.js +1 -1
- package/dist/melonjs.mjs/particles/settings.js +1 -1
- package/dist/melonjs.mjs/physics/body.js +1 -1
- package/dist/melonjs.mjs/physics/bounds.js +1 -1
- package/dist/melonjs.mjs/physics/collision.js +1 -1
- package/dist/melonjs.mjs/physics/detector.js +1 -1
- package/dist/melonjs.mjs/physics/quadtree.js +1 -1
- package/dist/melonjs.mjs/physics/response.js +1 -1
- package/dist/melonjs.mjs/physics/sat.js +1 -1
- package/dist/melonjs.mjs/physics/world.js +1 -1
- package/dist/melonjs.mjs/plugin/plugin.js +4 -4
- package/dist/melonjs.mjs/renderable/collectable.js +1 -1
- package/dist/melonjs.mjs/renderable/colorlayer.js +1 -1
- package/dist/melonjs.mjs/renderable/container.js +1 -1
- package/dist/melonjs.mjs/renderable/draggable.js +1 -1
- package/dist/melonjs.mjs/renderable/dragndrop.js +1 -1
- package/dist/melonjs.mjs/renderable/entity/entity.js +1 -1
- package/dist/melonjs.mjs/renderable/imagelayer.js +1 -1
- package/dist/melonjs.mjs/renderable/light2d.js +10 -1
- package/dist/melonjs.mjs/renderable/nineslicesprite.js +1 -1
- package/dist/melonjs.mjs/renderable/renderable.js +1 -1
- package/dist/melonjs.mjs/renderable/sprite.js +1 -1
- package/dist/melonjs.mjs/renderable/text/bitmaptext.js +1 -1
- package/dist/melonjs.mjs/renderable/text/bitmaptextdata.js +1 -1
- package/dist/melonjs.mjs/renderable/text/glyph.js +1 -1
- package/dist/melonjs.mjs/renderable/text/text.js +1 -1
- package/dist/melonjs.mjs/renderable/text/textmetrics.js +1 -1
- package/dist/melonjs.mjs/renderable/text/textstyle.js +1 -1
- package/dist/melonjs.mjs/renderable/trigger.js +1 -1
- package/dist/melonjs.mjs/renderable/ui/uibaseelement.js +1 -1
- package/dist/melonjs.mjs/renderable/ui/uispriteelement.js +1 -1
- package/dist/melonjs.mjs/renderable/ui/uitextbutton.js +1 -1
- package/dist/melonjs.mjs/state/stage.js +1 -1
- package/dist/melonjs.mjs/state/state.js +1 -1
- package/dist/melonjs.mjs/system/device.js +1 -1
- package/dist/melonjs.mjs/system/dom.js +1 -1
- package/dist/melonjs.mjs/system/event.js +1 -1
- package/dist/melonjs.mjs/system/platform.js +1 -1
- package/dist/melonjs.mjs/system/pooling.js +1 -1
- package/dist/melonjs.mjs/system/save.js +1 -1
- package/dist/melonjs.mjs/system/timer.js +1 -1
- package/dist/melonjs.mjs/tweens/easing.js +1 -1
- package/dist/melonjs.mjs/tweens/interpolation.js +1 -1
- package/dist/melonjs.mjs/tweens/tween.js +1 -1
- package/dist/melonjs.mjs/utils/agent.js +1 -1
- package/dist/melonjs.mjs/utils/array.js +1 -1
- package/dist/melonjs.mjs/utils/file.js +1 -1
- package/dist/melonjs.mjs/utils/function.js +1 -1
- package/dist/melonjs.mjs/utils/string.js +1 -1
- package/dist/melonjs.mjs/utils/utils.js +7 -19
- package/dist/melonjs.mjs/video/canvas/canvas_renderer.js +1 -1
- package/dist/melonjs.mjs/video/renderer.js +1 -1
- package/dist/melonjs.mjs/video/texture/atlas.js +1 -1
- package/dist/melonjs.mjs/video/texture/cache.js +1 -1
- package/dist/melonjs.mjs/video/texture/canvas_texture.js +1 -1
- package/dist/melonjs.mjs/video/utils/autodetect.js +1 -1
- package/dist/melonjs.mjs/video/video.js +1 -1
- package/dist/melonjs.mjs/video/webgl/buffer/vertex.js +1 -1
- package/dist/melonjs.mjs/video/webgl/compositors/compositor.js +1 -1
- package/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js +1 -1
- package/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js +1 -1
- package/dist/melonjs.mjs/video/webgl/glshader.js +1 -1
- package/dist/melonjs.mjs/video/webgl/shaders/primitive.frag.js +1 -1
- package/dist/melonjs.mjs/video/webgl/shaders/primitive.vert.js +1 -1
- package/dist/melonjs.mjs/video/webgl/shaders/quad.frag.js +1 -1
- package/dist/melonjs.mjs/video/webgl/shaders/quad.vert.js +1 -1
- package/dist/melonjs.mjs/video/webgl/utils/attributes.js +1 -1
- package/dist/melonjs.mjs/video/webgl/utils/precision.js +1 -1
- package/dist/melonjs.mjs/video/webgl/utils/program.js +1 -1
- package/dist/melonjs.mjs/video/webgl/utils/string.js +1 -1
- package/dist/melonjs.mjs/video/webgl/utils/uniforms.js +1 -1
- package/dist/melonjs.mjs/video/webgl/webgl_renderer.js +1 -1
- package/dist/melonjs.module.js +3151 -29
- package/dist/types/utils/utils.d.ts +4 -6
- package/package.json +2 -1
- package/src/loader/parsers/video.js +2 -1
- package/src/plugin/plugin.js +1 -1
- package/src/renderable/light2d.js +9 -0
- package/src/utils/utils.js +7 -18
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { d as debug_1 } from '../internal/debug.js';
|
|
9
|
+
import { c as constants } from '../internal/constants.js';
|
|
10
|
+
import { r as reExports } from '../internal/re.js';
|
|
11
|
+
import { p as parseOptions_1 } from '../internal/parse-options.js';
|
|
12
|
+
import { i as identifiers } from '../internal/identifiers.js';
|
|
13
|
+
|
|
14
|
+
const debug = debug_1;
|
|
15
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = constants;
|
|
16
|
+
const { safeRe: re, t } = reExports;
|
|
17
|
+
|
|
18
|
+
const parseOptions = parseOptions_1;
|
|
19
|
+
const { compareIdentifiers } = identifiers;
|
|
20
|
+
class SemVer {
|
|
21
|
+
constructor (version, options) {
|
|
22
|
+
options = parseOptions(options);
|
|
23
|
+
|
|
24
|
+
if (version instanceof SemVer) {
|
|
25
|
+
if (version.loose === !!options.loose &&
|
|
26
|
+
version.includePrerelease === !!options.includePrerelease) {
|
|
27
|
+
return version
|
|
28
|
+
} else {
|
|
29
|
+
version = version.version;
|
|
30
|
+
}
|
|
31
|
+
} else if (typeof version !== 'string') {
|
|
32
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (version.length > MAX_LENGTH) {
|
|
36
|
+
throw new TypeError(
|
|
37
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
debug('SemVer', version, options);
|
|
42
|
+
this.options = options;
|
|
43
|
+
this.loose = !!options.loose;
|
|
44
|
+
// this isn't actually relevant for versions, but keep it so that we
|
|
45
|
+
// don't run into trouble passing this.options around.
|
|
46
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
47
|
+
|
|
48
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
49
|
+
|
|
50
|
+
if (!m) {
|
|
51
|
+
throw new TypeError(`Invalid Version: ${version}`)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
this.raw = version;
|
|
55
|
+
|
|
56
|
+
// these are actually numbers
|
|
57
|
+
this.major = +m[1];
|
|
58
|
+
this.minor = +m[2];
|
|
59
|
+
this.patch = +m[3];
|
|
60
|
+
|
|
61
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
62
|
+
throw new TypeError('Invalid major version')
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
66
|
+
throw new TypeError('Invalid minor version')
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
70
|
+
throw new TypeError('Invalid patch version')
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// numberify any prerelease numeric ids
|
|
74
|
+
if (!m[4]) {
|
|
75
|
+
this.prerelease = [];
|
|
76
|
+
} else {
|
|
77
|
+
this.prerelease = m[4].split('.').map((id) => {
|
|
78
|
+
if (/^[0-9]+$/.test(id)) {
|
|
79
|
+
const num = +id;
|
|
80
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
81
|
+
return num
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return id
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
this.build = m[5] ? m[5].split('.') : [];
|
|
89
|
+
this.format();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
format () {
|
|
93
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
94
|
+
if (this.prerelease.length) {
|
|
95
|
+
this.version += `-${this.prerelease.join('.')}`;
|
|
96
|
+
}
|
|
97
|
+
return this.version
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
toString () {
|
|
101
|
+
return this.version
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
compare (other) {
|
|
105
|
+
debug('SemVer.compare', this.version, this.options, other);
|
|
106
|
+
if (!(other instanceof SemVer)) {
|
|
107
|
+
if (typeof other === 'string' && other === this.version) {
|
|
108
|
+
return 0
|
|
109
|
+
}
|
|
110
|
+
other = new SemVer(other, this.options);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (other.version === this.version) {
|
|
114
|
+
return 0
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return this.compareMain(other) || this.comparePre(other)
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
compareMain (other) {
|
|
121
|
+
if (!(other instanceof SemVer)) {
|
|
122
|
+
other = new SemVer(other, this.options);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return (
|
|
126
|
+
compareIdentifiers(this.major, other.major) ||
|
|
127
|
+
compareIdentifiers(this.minor, other.minor) ||
|
|
128
|
+
compareIdentifiers(this.patch, other.patch)
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
comparePre (other) {
|
|
133
|
+
if (!(other instanceof SemVer)) {
|
|
134
|
+
other = new SemVer(other, this.options);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// NOT having a prerelease is > having one
|
|
138
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
139
|
+
return -1
|
|
140
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
141
|
+
return 1
|
|
142
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
143
|
+
return 0
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
let i = 0;
|
|
147
|
+
do {
|
|
148
|
+
const a = this.prerelease[i];
|
|
149
|
+
const b = other.prerelease[i];
|
|
150
|
+
debug('prerelease compare', i, a, b);
|
|
151
|
+
if (a === undefined && b === undefined) {
|
|
152
|
+
return 0
|
|
153
|
+
} else if (b === undefined) {
|
|
154
|
+
return 1
|
|
155
|
+
} else if (a === undefined) {
|
|
156
|
+
return -1
|
|
157
|
+
} else if (a === b) {
|
|
158
|
+
continue
|
|
159
|
+
} else {
|
|
160
|
+
return compareIdentifiers(a, b)
|
|
161
|
+
}
|
|
162
|
+
} while (++i)
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
compareBuild (other) {
|
|
166
|
+
if (!(other instanceof SemVer)) {
|
|
167
|
+
other = new SemVer(other, this.options);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
let i = 0;
|
|
171
|
+
do {
|
|
172
|
+
const a = this.build[i];
|
|
173
|
+
const b = other.build[i];
|
|
174
|
+
debug('prerelease compare', i, a, b);
|
|
175
|
+
if (a === undefined && b === undefined) {
|
|
176
|
+
return 0
|
|
177
|
+
} else if (b === undefined) {
|
|
178
|
+
return 1
|
|
179
|
+
} else if (a === undefined) {
|
|
180
|
+
return -1
|
|
181
|
+
} else if (a === b) {
|
|
182
|
+
continue
|
|
183
|
+
} else {
|
|
184
|
+
return compareIdentifiers(a, b)
|
|
185
|
+
}
|
|
186
|
+
} while (++i)
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
190
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
191
|
+
inc (release, identifier, identifierBase) {
|
|
192
|
+
switch (release) {
|
|
193
|
+
case 'premajor':
|
|
194
|
+
this.prerelease.length = 0;
|
|
195
|
+
this.patch = 0;
|
|
196
|
+
this.minor = 0;
|
|
197
|
+
this.major++;
|
|
198
|
+
this.inc('pre', identifier, identifierBase);
|
|
199
|
+
break
|
|
200
|
+
case 'preminor':
|
|
201
|
+
this.prerelease.length = 0;
|
|
202
|
+
this.patch = 0;
|
|
203
|
+
this.minor++;
|
|
204
|
+
this.inc('pre', identifier, identifierBase);
|
|
205
|
+
break
|
|
206
|
+
case 'prepatch':
|
|
207
|
+
// If this is already a prerelease, it will bump to the next version
|
|
208
|
+
// drop any prereleases that might already exist, since they are not
|
|
209
|
+
// relevant at this point.
|
|
210
|
+
this.prerelease.length = 0;
|
|
211
|
+
this.inc('patch', identifier, identifierBase);
|
|
212
|
+
this.inc('pre', identifier, identifierBase);
|
|
213
|
+
break
|
|
214
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
215
|
+
// prepatch.
|
|
216
|
+
case 'prerelease':
|
|
217
|
+
if (this.prerelease.length === 0) {
|
|
218
|
+
this.inc('patch', identifier, identifierBase);
|
|
219
|
+
}
|
|
220
|
+
this.inc('pre', identifier, identifierBase);
|
|
221
|
+
break
|
|
222
|
+
|
|
223
|
+
case 'major':
|
|
224
|
+
// If this is a pre-major version, bump up to the same major version.
|
|
225
|
+
// Otherwise increment major.
|
|
226
|
+
// 1.0.0-5 bumps to 1.0.0
|
|
227
|
+
// 1.1.0 bumps to 2.0.0
|
|
228
|
+
if (
|
|
229
|
+
this.minor !== 0 ||
|
|
230
|
+
this.patch !== 0 ||
|
|
231
|
+
this.prerelease.length === 0
|
|
232
|
+
) {
|
|
233
|
+
this.major++;
|
|
234
|
+
}
|
|
235
|
+
this.minor = 0;
|
|
236
|
+
this.patch = 0;
|
|
237
|
+
this.prerelease = [];
|
|
238
|
+
break
|
|
239
|
+
case 'minor':
|
|
240
|
+
// If this is a pre-minor version, bump up to the same minor version.
|
|
241
|
+
// Otherwise increment minor.
|
|
242
|
+
// 1.2.0-5 bumps to 1.2.0
|
|
243
|
+
// 1.2.1 bumps to 1.3.0
|
|
244
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
245
|
+
this.minor++;
|
|
246
|
+
}
|
|
247
|
+
this.patch = 0;
|
|
248
|
+
this.prerelease = [];
|
|
249
|
+
break
|
|
250
|
+
case 'patch':
|
|
251
|
+
// If this is not a pre-release version, it will increment the patch.
|
|
252
|
+
// If it is a pre-release it will bump up to the same patch version.
|
|
253
|
+
// 1.2.0-5 patches to 1.2.0
|
|
254
|
+
// 1.2.0 patches to 1.2.1
|
|
255
|
+
if (this.prerelease.length === 0) {
|
|
256
|
+
this.patch++;
|
|
257
|
+
}
|
|
258
|
+
this.prerelease = [];
|
|
259
|
+
break
|
|
260
|
+
// This probably shouldn't be used publicly.
|
|
261
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
262
|
+
case 'pre': {
|
|
263
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
264
|
+
|
|
265
|
+
if (!identifier && identifierBase === false) {
|
|
266
|
+
throw new Error('invalid increment argument: identifier is empty')
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (this.prerelease.length === 0) {
|
|
270
|
+
this.prerelease = [base];
|
|
271
|
+
} else {
|
|
272
|
+
let i = this.prerelease.length;
|
|
273
|
+
while (--i >= 0) {
|
|
274
|
+
if (typeof this.prerelease[i] === 'number') {
|
|
275
|
+
this.prerelease[i]++;
|
|
276
|
+
i = -2;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
if (i === -1) {
|
|
280
|
+
// didn't increment anything
|
|
281
|
+
if (identifier === this.prerelease.join('.') && identifierBase === false) {
|
|
282
|
+
throw new Error('invalid increment argument: identifier already exists')
|
|
283
|
+
}
|
|
284
|
+
this.prerelease.push(base);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
if (identifier) {
|
|
288
|
+
// 1.2.0-beta.1 bumps to 1.2.0-beta.2,
|
|
289
|
+
// 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
|
|
290
|
+
let prerelease = [identifier, base];
|
|
291
|
+
if (identifierBase === false) {
|
|
292
|
+
prerelease = [identifier];
|
|
293
|
+
}
|
|
294
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
295
|
+
if (isNaN(this.prerelease[1])) {
|
|
296
|
+
this.prerelease = prerelease;
|
|
297
|
+
}
|
|
298
|
+
} else {
|
|
299
|
+
this.prerelease = prerelease;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
break
|
|
303
|
+
}
|
|
304
|
+
default:
|
|
305
|
+
throw new Error(`invalid increment argument: ${release}`)
|
|
306
|
+
}
|
|
307
|
+
this.raw = this.format();
|
|
308
|
+
if (this.build.length) {
|
|
309
|
+
this.raw += `+${this.build.join('.')}`;
|
|
310
|
+
}
|
|
311
|
+
return this
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
var semver = SemVer;
|
|
316
|
+
|
|
317
|
+
export { semver as s };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { p as parse_1 } from './parse.js';
|
|
9
|
+
|
|
10
|
+
const parse = parse_1;
|
|
11
|
+
const clean = (version, options) => {
|
|
12
|
+
const s = parse(version.trim().replace(/^[=v]+/, ''), options);
|
|
13
|
+
return s ? s.version : null
|
|
14
|
+
};
|
|
15
|
+
var clean_1 = clean;
|
|
16
|
+
|
|
17
|
+
export { clean_1 as c };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { e as eq_1 } from './eq.js';
|
|
9
|
+
import { n as neq_1 } from './neq.js';
|
|
10
|
+
import { g as gt_1 } from './gt.js';
|
|
11
|
+
import { g as gte_1 } from './gte.js';
|
|
12
|
+
import { l as lt_1 } from './lt.js';
|
|
13
|
+
import { l as lte_1 } from './lte.js';
|
|
14
|
+
|
|
15
|
+
const eq = eq_1;
|
|
16
|
+
const neq = neq_1;
|
|
17
|
+
const gt = gt_1;
|
|
18
|
+
const gte = gte_1;
|
|
19
|
+
const lt = lt_1;
|
|
20
|
+
const lte = lte_1;
|
|
21
|
+
|
|
22
|
+
const cmp = (a, op, b, loose) => {
|
|
23
|
+
switch (op) {
|
|
24
|
+
case '===':
|
|
25
|
+
if (typeof a === 'object') {
|
|
26
|
+
a = a.version;
|
|
27
|
+
}
|
|
28
|
+
if (typeof b === 'object') {
|
|
29
|
+
b = b.version;
|
|
30
|
+
}
|
|
31
|
+
return a === b
|
|
32
|
+
|
|
33
|
+
case '!==':
|
|
34
|
+
if (typeof a === 'object') {
|
|
35
|
+
a = a.version;
|
|
36
|
+
}
|
|
37
|
+
if (typeof b === 'object') {
|
|
38
|
+
b = b.version;
|
|
39
|
+
}
|
|
40
|
+
return a !== b
|
|
41
|
+
|
|
42
|
+
case '':
|
|
43
|
+
case '=':
|
|
44
|
+
case '==':
|
|
45
|
+
return eq(a, b, loose)
|
|
46
|
+
|
|
47
|
+
case '!=':
|
|
48
|
+
return neq(a, b, loose)
|
|
49
|
+
|
|
50
|
+
case '>':
|
|
51
|
+
return gt(a, b, loose)
|
|
52
|
+
|
|
53
|
+
case '>=':
|
|
54
|
+
return gte(a, b, loose)
|
|
55
|
+
|
|
56
|
+
case '<':
|
|
57
|
+
return lt(a, b, loose)
|
|
58
|
+
|
|
59
|
+
case '<=':
|
|
60
|
+
return lte(a, b, loose)
|
|
61
|
+
|
|
62
|
+
default:
|
|
63
|
+
throw new TypeError(`Invalid operator: ${op}`)
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
var cmp_1 = cmp;
|
|
67
|
+
|
|
68
|
+
export { cmp_1 as c };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { s as semver } from '../classes/semver.js';
|
|
9
|
+
import { p as parse_1 } from './parse.js';
|
|
10
|
+
import { r as reExports } from '../internal/re.js';
|
|
11
|
+
|
|
12
|
+
const SemVer = semver;
|
|
13
|
+
const parse = parse_1;
|
|
14
|
+
const { safeRe: re, t } = reExports;
|
|
15
|
+
|
|
16
|
+
const coerce = (version, options) => {
|
|
17
|
+
if (version instanceof SemVer) {
|
|
18
|
+
return version
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (typeof version === 'number') {
|
|
22
|
+
version = String(version);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (typeof version !== 'string') {
|
|
26
|
+
return null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
options = options || {};
|
|
30
|
+
|
|
31
|
+
let match = null;
|
|
32
|
+
if (!options.rtl) {
|
|
33
|
+
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
34
|
+
} else {
|
|
35
|
+
// Find the right-most coercible string that does not share
|
|
36
|
+
// a terminus with a more left-ward coercible string.
|
|
37
|
+
// Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
|
|
38
|
+
// With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'
|
|
39
|
+
//
|
|
40
|
+
// Walk through the string checking with a /g regexp
|
|
41
|
+
// Manually set the index so as to pick up overlapping matches.
|
|
42
|
+
// Stop when we get a match that ends at the string end, since no
|
|
43
|
+
// coercible string can be more right-ward without the same terminus.
|
|
44
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
45
|
+
let next;
|
|
46
|
+
while ((next = coerceRtlRegex.exec(version)) &&
|
|
47
|
+
(!match || match.index + match[0].length !== version.length)
|
|
48
|
+
) {
|
|
49
|
+
if (!match ||
|
|
50
|
+
next.index + next[0].length !== match.index + match[0].length) {
|
|
51
|
+
match = next;
|
|
52
|
+
}
|
|
53
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
54
|
+
}
|
|
55
|
+
// leave it in a clean state
|
|
56
|
+
coerceRtlRegex.lastIndex = -1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (match === null) {
|
|
60
|
+
return null
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const major = match[2];
|
|
64
|
+
const minor = match[3] || '0';
|
|
65
|
+
const patch = match[4] || '0';
|
|
66
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : '';
|
|
67
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : '';
|
|
68
|
+
|
|
69
|
+
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)
|
|
70
|
+
};
|
|
71
|
+
var coerce_1 = coerce;
|
|
72
|
+
|
|
73
|
+
export { coerce_1 as c };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { s as semver } from '../classes/semver.js';
|
|
9
|
+
|
|
10
|
+
const SemVer = semver;
|
|
11
|
+
const compareBuild = (a, b, loose) => {
|
|
12
|
+
const versionA = new SemVer(a, loose);
|
|
13
|
+
const versionB = new SemVer(b, loose);
|
|
14
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB)
|
|
15
|
+
};
|
|
16
|
+
var compareBuild_1 = compareBuild;
|
|
17
|
+
|
|
18
|
+
export { compareBuild_1 as c };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { c as compare_1 } from './compare.js';
|
|
9
|
+
|
|
10
|
+
const compare = compare_1;
|
|
11
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
12
|
+
var compareLoose_1 = compareLoose;
|
|
13
|
+
|
|
14
|
+
export { compareLoose_1 as c };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { s as semver } from '../classes/semver.js';
|
|
9
|
+
|
|
10
|
+
const SemVer = semver;
|
|
11
|
+
const compare = (a, b, loose) =>
|
|
12
|
+
new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
13
|
+
|
|
14
|
+
var compare_1 = compare;
|
|
15
|
+
|
|
16
|
+
export { compare_1 as c };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { p as parse_1 } from './parse.js';
|
|
9
|
+
|
|
10
|
+
const parse = parse_1;
|
|
11
|
+
|
|
12
|
+
const diff = (version1, version2) => {
|
|
13
|
+
const v1 = parse(version1, null, true);
|
|
14
|
+
const v2 = parse(version2, null, true);
|
|
15
|
+
const comparison = v1.compare(v2);
|
|
16
|
+
|
|
17
|
+
if (comparison === 0) {
|
|
18
|
+
return null
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const v1Higher = comparison > 0;
|
|
22
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
23
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
24
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
25
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
26
|
+
|
|
27
|
+
if (lowHasPre && !highHasPre) {
|
|
28
|
+
// Going from prerelease -> no prerelease requires some special casing
|
|
29
|
+
|
|
30
|
+
// If the low version has only a major, then it will always be a major
|
|
31
|
+
// Some examples:
|
|
32
|
+
// 1.0.0-1 -> 1.0.0
|
|
33
|
+
// 1.0.0-1 -> 1.1.1
|
|
34
|
+
// 1.0.0-1 -> 2.0.0
|
|
35
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
36
|
+
return 'major'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Otherwise it can be determined by checking the high version
|
|
40
|
+
|
|
41
|
+
if (highVersion.patch) {
|
|
42
|
+
// anything higher than a patch bump would result in the wrong version
|
|
43
|
+
return 'patch'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (highVersion.minor) {
|
|
47
|
+
// anything higher than a minor bump would result in the wrong version
|
|
48
|
+
return 'minor'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// bumping major/minor/patch all have same result
|
|
52
|
+
return 'major'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// add the `pre` prefix if we are going to a prerelease version
|
|
56
|
+
const prefix = highHasPre ? 'pre' : '';
|
|
57
|
+
|
|
58
|
+
if (v1.major !== v2.major) {
|
|
59
|
+
return prefix + 'major'
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (v1.minor !== v2.minor) {
|
|
63
|
+
return prefix + 'minor'
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (v1.patch !== v2.patch) {
|
|
67
|
+
return prefix + 'patch'
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// high and low are preleases
|
|
71
|
+
return 'prerelease'
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
var diff_1 = diff;
|
|
75
|
+
|
|
76
|
+
export { diff_1 as d };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { c as compare_1 } from './compare.js';
|
|
9
|
+
|
|
10
|
+
const compare = compare_1;
|
|
11
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
12
|
+
var eq_1 = eq;
|
|
13
|
+
|
|
14
|
+
export { eq_1 as e };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { c as compare_1 } from './compare.js';
|
|
9
|
+
|
|
10
|
+
const compare = compare_1;
|
|
11
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
12
|
+
var gt_1 = gt;
|
|
13
|
+
|
|
14
|
+
export { gt_1 as g };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { c as compare_1 } from './compare.js';
|
|
9
|
+
|
|
10
|
+
const compare = compare_1;
|
|
11
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
12
|
+
var gte_1 = gte;
|
|
13
|
+
|
|
14
|
+
export { gte_1 as g };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { s as semver } from '../classes/semver.js';
|
|
9
|
+
|
|
10
|
+
const SemVer = semver;
|
|
11
|
+
|
|
12
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
13
|
+
if (typeof (options) === 'string') {
|
|
14
|
+
identifierBase = identifier;
|
|
15
|
+
identifier = options;
|
|
16
|
+
options = undefined;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
try {
|
|
20
|
+
return new SemVer(
|
|
21
|
+
version instanceof SemVer ? version.version : version,
|
|
22
|
+
options
|
|
23
|
+
).inc(release, identifier, identifierBase).version
|
|
24
|
+
} catch (er) {
|
|
25
|
+
return null
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var inc_1 = inc;
|
|
29
|
+
|
|
30
|
+
export { inc_1 as i };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* melonJS Game Engine - v16.1.2
|
|
3
|
+
* http://www.melonjs.org
|
|
4
|
+
* melonjs is licensed under the MIT License.
|
|
5
|
+
* http://www.opensource.org/licenses/mit-license
|
|
6
|
+
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
|
|
7
|
+
*/
|
|
8
|
+
import { c as compare_1 } from './compare.js';
|
|
9
|
+
|
|
10
|
+
const compare = compare_1;
|
|
11
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
12
|
+
var lt_1 = lt;
|
|
13
|
+
|
|
14
|
+
export { lt_1 as l };
|