@adlad/plugin-viverse 0.10.0 → 0.11.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/deno.lock CHANGED
@@ -13,8 +13,8 @@
13
13
  "@jridgewell/trace-mapping"
14
14
  ]
15
15
  },
16
- "@jridgewell/resolve-uri@3.1.2": {
17
- "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="
16
+ "@jridgewell/resolve-uri@3.1.3": {
17
+ "integrity": "sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g=="
18
18
  },
19
19
  "@jridgewell/source-map@0.3.11": {
20
20
  "integrity": "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==",
package/iframeBridge.js CHANGED
@@ -1,4 +1,21 @@
1
+ import { parseArgs } from "node:util";
2
+
1
3
  export default async function (ctx) {
2
- const appId = await ctx.prompt("What is the Viverse app id?");
4
+ const { values } = parseArgs({
5
+ options: {
6
+ appId: {
7
+ type: "string",
8
+ short: "a",
9
+ },
10
+ },
11
+ strict: false,
12
+ });
13
+
14
+ let appId = values.appId || "";
15
+ while (!appId) {
16
+ appId = await input({
17
+ message: "What is the Viverse app id?\n",
18
+ });
19
+ }
3
20
  ctx.setPluginOptions(`{appId: "${appId}"}`);
4
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adlad/plugin-viverse",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "AdLad plugin for the Viverse sdk.",
5
5
  "type": "module",
6
6
  "main": "mod.js",