@shimotsuki/core 2.0.13 → 2.0.15

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.
Files changed (2) hide show
  1. package/dist/index.js +0 -27
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,3 @@
1
- import { configureTextEncoding } from '@bufbuild/protobuf/wire';
2
- import TextEncoding from 'text-encoding';
3
1
  import { AudioSource, _decorator, AudioClip, error, Node, director, log, sys, Component, Prefab, instantiate, isValid, Layers, view, Widget, v3, tween, Enum, game, UITransform, UIOpacity, Tween, Label, BlockInputEvents, Button, Director, warn, assetManager, Asset, resources, Game, SpriteFrame, Sprite, AsyncDelegate } from 'cc';
4
2
  import { PREVIEW, DEBUG } from 'cc/env';
5
3
  import { makeObservable, observable, autorun, reaction } from '@shimotsuki/mobx';
@@ -10,30 +8,6 @@ import { SocialGameClient } from 'sgc';
10
8
  import { EventEmitter } from 'eventemitter3';
11
9
  import 'core-js/es/array/index.js';
12
10
 
13
- console.log('===== TextEncoding Polyfil 开始加载 =====', TextEncoding);
14
- // 全局挂载(必须在所有页面加载前执行)
15
- // globalThis.TextEncoder = TextEncoding.TextEncoder;
16
- // globalThis.TextDecoder = TextEncoding.TextDecoder;
17
- debugger;
18
- configureTextEncoding({
19
- encodeUtf8(text) {
20
- return TextEncoding.TextEncoder.encode(text);
21
- },
22
- decodeUtf8(bytes) {
23
- return TextEncoding.TextDecoder.decode(bytes);
24
- },
25
- checkUtf8(text) {
26
- try {
27
- encodeURIComponent(text);
28
- return true;
29
- }
30
- catch (e) {
31
- return false;
32
- }
33
- },
34
- });
35
- console.log('===== TextEncoding Polyfil 已加载 =====');
36
-
37
11
  /**
38
12
  * @describe 音频公共类
39
13
  * @author 游金宇(KM)
@@ -2760,7 +2734,6 @@ class TimerManager extends BaseManager {
2760
2734
  }
2761
2735
  }
2762
2736
 
2763
- // 处理微信小程序的编码问题
2764
2737
  /**
2765
2738
  * @describe 管理类
2766
2739
  * @author 游金宇(KM)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shimotsuki/core",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",