@lynx-js/qrcode-rsbuild-plugin 0.4.1 → 0.4.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.
@@ -1,3 +1,6 @@
1
+ // Copyright 2024 The Lynx Authors. All rights reserved.
2
+ // Licensed under the Apache License Version 2.0 that can be found in the
3
+ // LICENSE file in the root directory of this source tree.
1
4
  import type { RsbuildPluginAPI } from '@rsbuild/core';
2
5
  import type { CustomizedSchemaFn } from './index.js';
3
6
  export default function generateDevUrls(api: RsbuildPluginAPI, entry: string, schemaFn: CustomizedSchemaFn, port: number): Record<string, string>;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ // Copyright 2024 The Lynx Authors. All rights reserved.
2
+ // Licensed under the Apache License Version 2.0 that can be found in the
3
+ // LICENSE file in the root directory of this source tree.
1
4
  /**
2
5
  * @packageDocumentation
3
6
  *
package/dist/index.js CHANGED
@@ -1,29 +1,4 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
2
- import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
3
- import * as __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__ from "node:process";
4
- import * as __WEBPACK_EXTERNAL_MODULE_node_readline_91c31510__ from "node:readline";
5
- import * as __WEBPACK_EXTERNAL_MODULE_node_tty_c64aab7e__ from "node:tty";
6
- import * as __WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__ from "node:util";
7
- var __webpack_modules__ = {
8
- "node:fs": function(module) {
9
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__;
10
- },
11
- "node:path": function(module) {
12
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__;
13
- },
14
- "node:process": function(module) {
15
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__;
16
- },
17
- "node:readline": function(module) {
18
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_readline_91c31510__;
19
- },
20
- "node:tty": function(module) {
21
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_tty_c64aab7e__;
22
- },
23
- "node:util": function(module) {
24
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__;
25
- }
26
- };
1
+ var __webpack_modules__ = {};
27
2
  var __webpack_module_cache__ = {};
28
3
  function __webpack_require__(moduleId) {
29
4
  var cachedModule = __webpack_module_cache__[moduleId];
@@ -77,7 +52,7 @@ __webpack_require__.m = __webpack_modules__;
77
52
  })();
78
53
  (()=>{
79
54
  var installedChunks = {
80
- 980: 0
55
+ 410: 0
81
56
  };
82
57
  var installChunk = (data)=>{
83
58
  var __webpack_ids__ = data.__webpack_ids__;
@@ -132,9 +107,9 @@ const gExistingShortcuts = new WeakSet();
132
107
  async function registerConsoleShortcuts(options) {
133
108
  const [{ default: showQRCode }] = await Promise.all([
134
109
  Promise.all([
135
- __webpack_require__.e("373"),
136
- __webpack_require__.e("640"),
137
- __webpack_require__.e("204")
110
+ __webpack_require__.e("759"),
111
+ __webpack_require__.e("472"),
112
+ __webpack_require__.e("543")
138
113
  ]).then(__webpack_require__.bind(__webpack_require__, "./src/showQRCode.ts"))
139
114
  ]);
140
115
  const currentEntry = options.entries[0];
@@ -151,11 +126,14 @@ async function registerConsoleShortcuts(options) {
151
126
  }
152
127
  async function loop(options, value, devUrls) {
153
128
  const [{ autocomplete, select, selectKey, isCancel, cancel }, { default: showQRCode }] = await Promise.all([
154
- __webpack_require__.e("373").then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/.pnpm/@clack+prompts@1.0.0-alpha.4/node_modules/@clack/prompts/dist/index.mjs")),
155
129
  Promise.all([
156
- __webpack_require__.e("373"),
157
- __webpack_require__.e("640"),
158
- __webpack_require__.e("204")
130
+ __webpack_require__.e("759"),
131
+ __webpack_require__.e("640")
132
+ ]).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/.pnpm/@clack+prompts@1.0.0-alpha.5/node_modules/@clack/prompts/dist/index.mjs")),
133
+ Promise.all([
134
+ __webpack_require__.e("759"),
135
+ __webpack_require__.e("472"),
136
+ __webpack_require__.e("543")
159
137
  ]).then(__webpack_require__.bind(__webpack_require__, "./src/showQRCode.ts"))
160
138
  ]);
161
139
  const selectFn = (length)=>length > 5 ? autocomplete : select;
@@ -1,3 +1,6 @@
1
+ // Copyright 2024 The Lynx Authors. All rights reserved.
2
+ // Licensed under the Apache License Version 2.0 that can be found in the
3
+ // LICENSE file in the root directory of this source tree.
1
4
  import type { RsbuildPluginAPI } from '@rsbuild/core';
2
5
  import type { CustomizedSchemaFn } from './index.js';
3
6
  interface Options {
package/dist/shortcuts.js CHANGED
@@ -1,29 +1,4 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
2
- import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
3
- import * as __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__ from "node:process";
4
- import * as __WEBPACK_EXTERNAL_MODULE_node_readline_91c31510__ from "node:readline";
5
- import * as __WEBPACK_EXTERNAL_MODULE_node_tty_c64aab7e__ from "node:tty";
6
- import * as __WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__ from "node:util";
7
- var __webpack_modules__ = {
8
- "node:fs": function(module) {
9
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__;
10
- },
11
- "node:path": function(module) {
12
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__;
13
- },
14
- "node:process": function(module) {
15
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__;
16
- },
17
- "node:readline": function(module) {
18
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_readline_91c31510__;
19
- },
20
- "node:tty": function(module) {
21
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_tty_c64aab7e__;
22
- },
23
- "node:util": function(module) {
24
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__;
25
- }
26
- };
1
+ var __webpack_modules__ = {};
27
2
  var __webpack_module_cache__ = {};
28
3
  function __webpack_require__(moduleId) {
29
4
  var cachedModule = __webpack_module_cache__[moduleId];
@@ -77,7 +52,7 @@ __webpack_require__.m = __webpack_modules__;
77
52
  })();
78
53
  (()=>{
79
54
  var installedChunks = {
80
- 480: 0
55
+ 769: 0
81
56
  };
82
57
  var installChunk = (data)=>{
83
58
  var __webpack_ids__ = data.__webpack_ids__;
@@ -132,9 +107,9 @@ const gExistingShortcuts = new WeakSet();
132
107
  async function registerConsoleShortcuts(options) {
133
108
  const [{ default: showQRCode }] = await Promise.all([
134
109
  Promise.all([
135
- __webpack_require__.e("373"),
136
- __webpack_require__.e("640"),
137
- __webpack_require__.e("204")
110
+ __webpack_require__.e("759"),
111
+ __webpack_require__.e("472"),
112
+ __webpack_require__.e("543")
138
113
  ]).then(__webpack_require__.bind(__webpack_require__, "./src/showQRCode.ts"))
139
114
  ]);
140
115
  const currentEntry = options.entries[0];
@@ -151,11 +126,14 @@ async function registerConsoleShortcuts(options) {
151
126
  }
152
127
  async function loop(options, value, devUrls) {
153
128
  const [{ autocomplete, select, selectKey, isCancel, cancel }, { default: showQRCode }] = await Promise.all([
154
- __webpack_require__.e("373").then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/.pnpm/@clack+prompts@1.0.0-alpha.4/node_modules/@clack/prompts/dist/index.mjs")),
155
129
  Promise.all([
156
- __webpack_require__.e("373"),
157
- __webpack_require__.e("640"),
158
- __webpack_require__.e("204")
130
+ __webpack_require__.e("759"),
131
+ __webpack_require__.e("640")
132
+ ]).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/.pnpm/@clack+prompts@1.0.0-alpha.5/node_modules/@clack/prompts/dist/index.mjs")),
133
+ Promise.all([
134
+ __webpack_require__.e("759"),
135
+ __webpack_require__.e("472"),
136
+ __webpack_require__.e("543")
159
137
  ]).then(__webpack_require__.bind(__webpack_require__, "./src/showQRCode.ts"))
160
138
  ]);
161
139
  const selectFn = (length)=>length > 5 ? autocomplete : select;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/qrcode-rsbuild-plugin",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "A rsbuild plugin for printing QRCode in terminal",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -43,12 +43,12 @@
43
43
  "README.md"
44
44
  ],
45
45
  "devDependencies": {
46
- "@clack/prompts": "1.0.0-alpha.4",
47
- "@microsoft/api-extractor": "7.52.11",
48
- "@rsbuild/core": "1.4.15",
46
+ "@clack/prompts": "1.0.0-alpha.5",
47
+ "@microsoft/api-extractor": "7.52.13",
48
+ "@rsbuild/core": "1.5.12",
49
49
  "picocolors": "^1.1.1",
50
50
  "uqr": "0.1.2",
51
- "@lynx-js/rspeedy": "0.10.8"
51
+ "@lynx-js/rspeedy": "0.11.4"
52
52
  },
53
53
  "engines": {
54
54
  "node": ">=18"
package/dist/204.js DELETED
@@ -1,20 +0,0 @@
1
- export const __webpack_ids__ = [
2
- "204"
3
- ];
4
- export const __webpack_modules__ = {
5
- "./src/showQRCode.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
- __webpack_require__.r(__webpack_exports__);
7
- __webpack_require__.d(__webpack_exports__, {
8
- default: ()=>showQRCode
9
- });
10
- var _clack_prompts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/.pnpm/@clack+prompts@1.0.0-alpha.4/node_modules/@clack/prompts/dist/index.mjs");
11
- var picocolors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
12
- var picocolors__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(picocolors__WEBPACK_IMPORTED_MODULE_1__);
13
- var uqr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../../node_modules/.pnpm/uqr@0.1.2/node_modules/uqr/dist/index.mjs");
14
- function showQRCode(url) {
15
- _clack_prompts__WEBPACK_IMPORTED_MODULE_0__.log.info(picocolors__WEBPACK_IMPORTED_MODULE_1___default().green('Scan with Lynx'));
16
- _clack_prompts__WEBPACK_IMPORTED_MODULE_0__.log.success((0, uqr__WEBPACK_IMPORTED_MODULE_2__.LL)(url));
17
- _clack_prompts__WEBPACK_IMPORTED_MODULE_0__.log.success(url);
18
- }
19
- }
20
- };