@awayfl/awayfl-player 0.2.40 → 0.2.41
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/bundle/awayfl-player.umd.js +30 -30
- package/bundle/awayfl-player.umd.js.gz +0 -0
- package/bundle/awayfl-player.umd.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/index.ts +11 -2
- package/package.json +1 -1
- package/scripts/updateAwayDev_mac.sh +8 -2
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AACzC,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAC,QAAQ,IAAI,YAAY,EAAC,MAAM,cAAc,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { BitmapImage2D, ImageUtils } from "@awayjs/stage";
|
|
2
|
+
console.debug("AwayFL-Player - 0.2.41");
|
|
2
3
|
export { AVMPlayer } from "./lib/AVMPlayer";
|
|
3
4
|
export { AVM1Player } from "./lib/AVM1Player";
|
|
4
5
|
export { AVM2Player } from "./lib/AVM2Player";
|
|
@@ -7,3 +8,4 @@ export { EventBase } from "@awayjs/core";
|
|
|
7
8
|
export { StageManager } from "@awayjs/stage";
|
|
8
9
|
export { Settings as AVM2Settings } from "@awayfl/avm2";
|
|
9
10
|
export { PlayerGlobal } from "@awayfl/playerglobal";
|
|
11
|
+
ImageUtils.registerDefaults(function () { return new BitmapImage2D(1, 1, true, 0x0); }, null, null, null);
|
package/index.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { BitmapImage2D, ImageUtils } from "@awayjs/stage";
|
|
2
|
+
|
|
3
|
+
console.debug("AwayFL-Player - 0.2.41");
|
|
2
4
|
|
|
3
5
|
export {AVMPlayer} from "./lib/AVMPlayer";
|
|
4
6
|
export {AVM1Player} from "./lib/AVM1Player";
|
|
@@ -7,4 +9,11 @@ export {LoaderEvent} from "@awayjs/core";
|
|
|
7
9
|
export {EventBase} from "@awayjs/core";
|
|
8
10
|
export {StageManager} from "@awayjs/stage";
|
|
9
11
|
export {Settings as AVM2Settings} from "@awayfl/avm2";
|
|
10
|
-
export {PlayerGlobal} from "@awayfl/playerglobal";
|
|
12
|
+
export {PlayerGlobal} from "@awayfl/playerglobal";
|
|
13
|
+
|
|
14
|
+
ImageUtils.registerDefaults(
|
|
15
|
+
() => new BitmapImage2D(1, 1, true, 0x0),
|
|
16
|
+
null,
|
|
17
|
+
null,
|
|
18
|
+
null,
|
|
19
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awayfl/awayfl-player",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.41",
|
|
4
4
|
"description": "Flash Player emulator for executing SWF files (published for FP versions 6 and up) in javascript",
|
|
5
5
|
"main": "bundle/awayfl-player.umd.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -3,16 +3,22 @@ set -euo pipefail
|
|
|
3
3
|
cd $(dirname "$0")
|
|
4
4
|
|
|
5
5
|
function updateIfNeeded () {
|
|
6
|
+
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
|
7
|
+
|
|
6
8
|
set +e
|
|
7
|
-
UP_TO_DATE=`git pull origin $1 2>/dev/null | grep "Already up to date"
|
|
9
|
+
UP_TO_DATE=`git pull origin $1 2>/dev/null | grep "Already up to date"`
|
|
8
10
|
set -e
|
|
9
|
-
if [
|
|
11
|
+
if [ -z "$UP_TO_DATE" ]; then
|
|
10
12
|
npm run tsc:build
|
|
13
|
+
else
|
|
14
|
+
echo Already up to date
|
|
11
15
|
fi
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
echo [32m Pulls all updates into the "@awayjs" and "@awayfl" directories, and runs tsc:build[0m
|
|
15
19
|
read -n 1 -s -r -p "Press any key to continue"
|
|
20
|
+
echo
|
|
21
|
+
echo
|
|
16
22
|
cd ..
|
|
17
23
|
cd ..
|
|
18
24
|
|