yakuza0 2.21.9 → 2.21.10-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.21.9",
3
+ "version": "2.21.10-beta.0",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -103,12 +103,12 @@
103
103
  "tcp-port-used": "^1.0.1",
104
104
  "ua-parser-js": "^0.7.20",
105
105
  "v8-compile-cache": "^2.0.2",
106
- "yakuza1": "2.6.8"
106
+ "yakuza1": "2.6.9-beta.0"
107
107
  },
108
108
  "peerDependencies": {
109
109
  "@rdc/nuxt": "2.15.8-0",
110
110
  "core-js": "3.10.1",
111
111
  "eslint": "7.2.0",
112
- "yakuza1": "2.6.8"
112
+ "yakuza1": "2.6.9-beta.0"
113
113
  }
114
114
  }
@@ -104,7 +104,7 @@ export default async (ctx, inject) => {
104
104
  }
105
105
  };
106
106
 
107
- // 拓展本地图片
107
+ // 拓展本地图片
108
108
  tfs.local = async (fileUrl) => {
109
109
  if (typeof fileUrl === 'string') {
110
110
  if (fileUrl.startsWith('/')) {
@@ -119,6 +119,10 @@ export default async (ctx, inject) => {
119
119
  return (await blobInfo(await obj(...args))).url;
120
120
  };
121
121
 
122
+ obj.base64 = async (...args) => {
123
+ return (await blobInfo(await obj(...args), {base64: {enabled: true}})).base64;
124
+ };
125
+
122
126
  obj.info = async (...args) => {
123
127
  return await blobInfo(await obj(...args))
124
128
  };