@pinfix/plugin 1.0.0 → 1.0.1
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/dist/{chunk-WYYKYDGW.js → chunk-QFRT5XZV.js} +2 -1
- package/dist/index.cjs +2 -1
- package/dist/index.d-DyaJaYjr.d.cts +13 -0
- package/dist/index.d-DyaJaYjr.d.ts +13 -0
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +1 -1
- package/dist/rspack.cjs +2 -1
- package/dist/rspack.d.cts +2 -2
- package/dist/rspack.d.ts +2 -2
- package/dist/rspack.js +1 -1
- package/dist/vite.cjs +2 -1
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.ts +2 -2
- package/dist/vite.js +1 -1
- package/dist/webpack.cjs +2 -1
- package/dist/webpack.d.cts +2 -2
- package/dist/webpack.d.ts +2 -2
- package/dist/webpack.js +1 -1
- package/package.json +1 -1
|
@@ -327,7 +327,8 @@ function injectHtml(html, script) {
|
|
|
327
327
|
return html.replace("<head>", `<head>
|
|
328
328
|
${script}`);
|
|
329
329
|
}
|
|
330
|
-
var unplugin = createUnplugin((
|
|
330
|
+
var unplugin = createUnplugin((rawOptions) => {
|
|
331
|
+
const options = rawOptions ?? {};
|
|
331
332
|
const port = options.port ?? WS_PORT_DEFAULT;
|
|
332
333
|
let root = options.root ?? process.cwd();
|
|
333
334
|
const wsUrl = `ws://localhost:${port}`;
|
package/dist/index.cjs
CHANGED
|
@@ -365,7 +365,8 @@ function injectHtml(html, script) {
|
|
|
365
365
|
return html.replace("<head>", `<head>
|
|
366
366
|
${script}`);
|
|
367
367
|
}
|
|
368
|
-
var unplugin = (0, import_unplugin.createUnplugin)((
|
|
368
|
+
var unplugin = (0, import_unplugin.createUnplugin)((rawOptions) => {
|
|
369
|
+
const options = rawOptions ?? {};
|
|
369
370
|
const port = options.port ?? WS_PORT_DEFAULT;
|
|
370
371
|
let root = options.root ?? process.cwd();
|
|
371
372
|
const wsUrl = `ws://localhost:${port}`;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface PinFixOptions {
|
|
2
|
+
port?: number;
|
|
3
|
+
root?: string;
|
|
4
|
+
prompt?: string;
|
|
5
|
+
hotkey?: string;
|
|
6
|
+
fab?: boolean;
|
|
7
|
+
escapeTags?: (string | RegExp)[];
|
|
8
|
+
match?: RegExp;
|
|
9
|
+
exclude?: RegExp;
|
|
10
|
+
debug?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type { PinFixOptions as P };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface PinFixOptions {
|
|
2
|
+
port?: number;
|
|
3
|
+
root?: string;
|
|
4
|
+
prompt?: string;
|
|
5
|
+
hotkey?: string;
|
|
6
|
+
fab?: boolean;
|
|
7
|
+
escapeTags?: (string | RegExp)[];
|
|
8
|
+
match?: RegExp;
|
|
9
|
+
exclude?: RegExp;
|
|
10
|
+
debug?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type { PinFixOptions as P };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as unplugin$1 from 'unplugin';
|
|
2
|
-
import { PinFixOptions } from '
|
|
3
|
-
export { PinFixOptions } from '@pinfix/shared';
|
|
2
|
+
import { P as PinFixOptions } from './index.d-DyaJaYjr.cjs';
|
|
4
3
|
|
|
5
|
-
declare const unplugin: unplugin$1.UnpluginInstance<PinFixOptions, boolean>;
|
|
4
|
+
declare const unplugin: unplugin$1.UnpluginInstance<PinFixOptions | undefined, boolean>;
|
|
6
5
|
|
|
7
6
|
// @ts-ignore
|
|
8
7
|
export = unplugin;
|
|
9
|
-
export { unplugin };
|
|
8
|
+
export { PinFixOptions, unplugin };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as unplugin$1 from 'unplugin';
|
|
2
|
-
import { PinFixOptions } from '
|
|
3
|
-
export { PinFixOptions } from '@pinfix/shared';
|
|
2
|
+
import { P as PinFixOptions } from './index.d-DyaJaYjr.js';
|
|
4
3
|
|
|
5
|
-
declare const unplugin: unplugin$1.UnpluginInstance<PinFixOptions, boolean>;
|
|
4
|
+
declare const unplugin: unplugin$1.UnpluginInstance<PinFixOptions | undefined, boolean>;
|
|
6
5
|
|
|
7
|
-
export { unplugin as default, unplugin };
|
|
6
|
+
export { PinFixOptions, unplugin as default, unplugin };
|
package/dist/index.js
CHANGED
package/dist/rspack.cjs
CHANGED
|
@@ -366,7 +366,8 @@ function injectHtml(html, script) {
|
|
|
366
366
|
return html.replace("<head>", `<head>
|
|
367
367
|
${script}`);
|
|
368
368
|
}
|
|
369
|
-
var unplugin = (0, import_unplugin.createUnplugin)((
|
|
369
|
+
var unplugin = (0, import_unplugin.createUnplugin)((rawOptions) => {
|
|
370
|
+
const options = rawOptions ?? {};
|
|
370
371
|
const port = options.port ?? WS_PORT_DEFAULT;
|
|
371
372
|
let root = options.root ?? process.cwd();
|
|
372
373
|
const wsUrl = `ws://localhost:${port}`;
|
package/dist/rspack.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
-
import
|
|
2
|
+
import { P as PinFixOptions } from './index.d-DyaJaYjr.cjs';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options
|
|
4
|
+
declare const _default: (options?: PinFixOptions | undefined) => unplugin.RspackPluginInstance;
|
|
5
5
|
|
|
6
6
|
export = _default;
|
package/dist/rspack.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
-
import
|
|
2
|
+
import { P as PinFixOptions } from './index.d-DyaJaYjr.js';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options
|
|
4
|
+
declare const _default: (options?: PinFixOptions | undefined) => unplugin.RspackPluginInstance;
|
|
5
5
|
|
|
6
6
|
export { _default as default };
|
package/dist/rspack.js
CHANGED
package/dist/vite.cjs
CHANGED
|
@@ -366,7 +366,8 @@ function injectHtml(html, script) {
|
|
|
366
366
|
return html.replace("<head>", `<head>
|
|
367
367
|
${script}`);
|
|
368
368
|
}
|
|
369
|
-
var unplugin = (0, import_unplugin.createUnplugin)((
|
|
369
|
+
var unplugin = (0, import_unplugin.createUnplugin)((rawOptions) => {
|
|
370
|
+
const options = rawOptions ?? {};
|
|
370
371
|
const port = options.port ?? WS_PORT_DEFAULT;
|
|
371
372
|
let root = options.root ?? process.cwd();
|
|
372
373
|
const wsUrl = `ws://localhost:${port}`;
|
package/dist/vite.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
-
import
|
|
2
|
+
import { P as PinFixOptions } from './index.d-DyaJaYjr.cjs';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options
|
|
4
|
+
declare const _default: (options?: PinFixOptions | undefined) => unplugin.VitePlugin<any> | unplugin.VitePlugin<any>[];
|
|
5
5
|
|
|
6
6
|
export = _default;
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
-
import
|
|
2
|
+
import { P as PinFixOptions } from './index.d-DyaJaYjr.js';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options
|
|
4
|
+
declare const _default: (options?: PinFixOptions | undefined) => unplugin.VitePlugin<any> | unplugin.VitePlugin<any>[];
|
|
5
5
|
|
|
6
6
|
export { _default as default };
|
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -366,7 +366,8 @@ function injectHtml(html, script) {
|
|
|
366
366
|
return html.replace("<head>", `<head>
|
|
367
367
|
${script}`);
|
|
368
368
|
}
|
|
369
|
-
var unplugin = (0, import_unplugin.createUnplugin)((
|
|
369
|
+
var unplugin = (0, import_unplugin.createUnplugin)((rawOptions) => {
|
|
370
|
+
const options = rawOptions ?? {};
|
|
370
371
|
const port = options.port ?? WS_PORT_DEFAULT;
|
|
371
372
|
let root = options.root ?? process.cwd();
|
|
372
373
|
const wsUrl = `ws://localhost:${port}`;
|
package/dist/webpack.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
-
import
|
|
2
|
+
import { P as PinFixOptions } from './index.d-DyaJaYjr.cjs';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options
|
|
4
|
+
declare const _default: (options?: PinFixOptions | undefined) => unplugin.WebpackPluginInstance;
|
|
5
5
|
|
|
6
6
|
export = _default;
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
-
import
|
|
2
|
+
import { P as PinFixOptions } from './index.d-DyaJaYjr.js';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options
|
|
4
|
+
declare const _default: (options?: PinFixOptions | undefined) => unplugin.WebpackPluginInstance;
|
|
5
5
|
|
|
6
6
|
export { _default as default };
|
package/dist/webpack.js
CHANGED