@monstermann/unplugin-set 0.0.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/LICENSE +21 -0
- package/README.md +9 -0
- package/dist/esbuild.cjs +7 -0
- package/dist/esbuild.d.cts +6 -0
- package/dist/esbuild.d.ts +7 -0
- package/dist/esbuild.js +7 -0
- package/dist/index.cjs +3 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +3 -0
- package/dist/rolldown.cjs +7 -0
- package/dist/rolldown.d.cts +6 -0
- package/dist/rolldown.d.ts +7 -0
- package/dist/rolldown.js +7 -0
- package/dist/rollup.cjs +7 -0
- package/dist/rollup.d.cts +6 -0
- package/dist/rollup.d.ts +7 -0
- package/dist/rollup.js +7 -0
- package/dist/rspack.cjs +7 -0
- package/dist/rspack.d.cts +5 -0
- package/dist/rspack.d.ts +6 -0
- package/dist/rspack.js +7 -0
- package/dist/src-BdqpuY0-.cjs +60 -0
- package/dist/src-DBqcHzf0.js +29 -0
- package/dist/types-BnIZbJOa.d.ts +11 -0
- package/dist/types-C5O69-EH.d.cts +11 -0
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +2 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.js +1 -0
- package/dist/vite.cjs +7 -0
- package/dist/vite.d.cts +6 -0
- package/dist/vite.d.ts +7 -0
- package/dist/vite.js +7 -0
- package/dist/webpack.cjs +7 -0
- package/dist/webpack.d.cts +5 -0
- package/dist/webpack.d.ts +6 -0
- package/dist/webpack.js +7 -0
- package/package.json +123 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Michael Ostermann
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/dist/esbuild.cjs
ADDED
package/dist/esbuild.js
ADDED
package/dist/index.cjs
ADDED
package/dist/index.d.cts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/dist/rolldown.js
ADDED
package/dist/rollup.cjs
ADDED
package/dist/rollup.d.ts
ADDED
package/dist/rollup.js
ADDED
package/dist/rspack.cjs
ADDED
package/dist/rspack.d.ts
ADDED
package/dist/rspack.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
let __monstermann_tree_shake_import_namespaces = require("@monstermann/tree-shake-import-namespaces");
|
|
25
|
+
__monstermann_tree_shake_import_namespaces = __toESM(__monstermann_tree_shake_import_namespaces);
|
|
26
|
+
let unplugin = require("unplugin");
|
|
27
|
+
unplugin = __toESM(unplugin);
|
|
28
|
+
let unplugin_utils = require("unplugin-utils");
|
|
29
|
+
unplugin_utils = __toESM(unplugin_utils);
|
|
30
|
+
|
|
31
|
+
//#region src/index.ts
|
|
32
|
+
var src_default = (0, unplugin.createUnplugin)(({ debug, enforce, exclude, include } = {}) => {
|
|
33
|
+
const shouldDebug = debug === void 0 ? () => false : typeof debug === "boolean" ? () => debug : (0, unplugin_utils.createFilter)(debug);
|
|
34
|
+
return {
|
|
35
|
+
enforce,
|
|
36
|
+
name: "unplugin-result",
|
|
37
|
+
transform: {
|
|
38
|
+
filter: { id: {
|
|
39
|
+
exclude,
|
|
40
|
+
include: include || [/\.[jt]sx?$/]
|
|
41
|
+
} },
|
|
42
|
+
handler(code, id) {
|
|
43
|
+
return (0, __monstermann_tree_shake_import_namespaces.default)(code, id, {
|
|
44
|
+
debug: shouldDebug(id),
|
|
45
|
+
resolve({ importAlias, importName, importPath, propertyName }) {
|
|
46
|
+
if (importPath === "@monstermann/set" && importName === "Set") return `import { ${propertyName} as ${importAlias} } from "@monstermann/set/Set/${propertyName}.js"`;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
Object.defineProperty(exports, 'src_default', {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () {
|
|
58
|
+
return src_default;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import transform from "@monstermann/tree-shake-import-namespaces";
|
|
2
|
+
import { createUnplugin } from "unplugin";
|
|
3
|
+
import { createFilter } from "unplugin-utils";
|
|
4
|
+
|
|
5
|
+
//#region src/index.ts
|
|
6
|
+
var src_default = createUnplugin(({ debug, enforce, exclude, include } = {}) => {
|
|
7
|
+
const shouldDebug = debug === void 0 ? () => false : typeof debug === "boolean" ? () => debug : createFilter(debug);
|
|
8
|
+
return {
|
|
9
|
+
enforce,
|
|
10
|
+
name: "unplugin-result",
|
|
11
|
+
transform: {
|
|
12
|
+
filter: { id: {
|
|
13
|
+
exclude,
|
|
14
|
+
include: include || [/\.[jt]sx?$/]
|
|
15
|
+
} },
|
|
16
|
+
handler(code, id) {
|
|
17
|
+
return transform(code, id, {
|
|
18
|
+
debug: shouldDebug(id),
|
|
19
|
+
resolve({ importAlias, importName, importPath, propertyName }) {
|
|
20
|
+
if (importPath === "@monstermann/set" && importName === "Set") return `import { ${propertyName} as ${importAlias} } from "@monstermann/set/Set/${propertyName}.js"`;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { src_default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FilterPattern } from "unplugin";
|
|
2
|
+
|
|
3
|
+
//#region src/types.d.ts
|
|
4
|
+
interface Options {
|
|
5
|
+
debug?: boolean | FilterPattern;
|
|
6
|
+
enforce?: "post" | "pre" | undefined;
|
|
7
|
+
exclude?: FilterPattern;
|
|
8
|
+
include?: FilterPattern;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Options };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FilterPattern } from "unplugin";
|
|
2
|
+
|
|
3
|
+
//#region src/types.d.ts
|
|
4
|
+
interface Options {
|
|
5
|
+
debug?: boolean | FilterPattern;
|
|
6
|
+
enforce?: "post" | "pre" | undefined;
|
|
7
|
+
exclude?: FilterPattern;
|
|
8
|
+
include?: FilterPattern;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Options };
|
package/dist/types.cjs
ADDED
|
File without changes
|
package/dist/types.d.cts
ADDED
package/dist/types.d.ts
ADDED
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/vite.cjs
ADDED
package/dist/vite.d.cts
ADDED
package/dist/vite.d.ts
ADDED
package/dist/vite.js
ADDED
package/dist/webpack.cjs
ADDED
package/dist/webpack.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@monstermann/unplugin-set",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"description": "Functional utilities for sets.",
|
|
6
|
+
"author": "Michael Ostermann <michaelostermann@me.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://MichaelOstermann.github.io/set",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/MichaelOstermann/set.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/MichaelOstermann/set/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [],
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"require": {
|
|
25
|
+
"types": "./dist/index.d.cts",
|
|
26
|
+
"default": "./dist/index.cjs"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"./esbuild": {
|
|
30
|
+
"import": {
|
|
31
|
+
"types": "./dist/esbuild.d.ts",
|
|
32
|
+
"default": "./dist/esbuild.js"
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"types": "./dist/esbuild.d.cts",
|
|
36
|
+
"default": "./dist/esbuild.cjs"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"./rolldown": {
|
|
40
|
+
"import": {
|
|
41
|
+
"types": "./dist/rolldown.d.ts",
|
|
42
|
+
"default": "./dist/rolldown.js"
|
|
43
|
+
},
|
|
44
|
+
"require": {
|
|
45
|
+
"types": "./dist/rolldown.d.cts",
|
|
46
|
+
"default": "./dist/rolldown.cjs"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"./rollup": {
|
|
50
|
+
"import": {
|
|
51
|
+
"types": "./dist/rollup.d.ts",
|
|
52
|
+
"default": "./dist/rollup.js"
|
|
53
|
+
},
|
|
54
|
+
"require": {
|
|
55
|
+
"types": "./dist/rollup.d.cts",
|
|
56
|
+
"default": "./dist/rollup.cjs"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"./rspack": {
|
|
60
|
+
"import": {
|
|
61
|
+
"types": "./dist/rspack.d.ts",
|
|
62
|
+
"default": "./dist/rspack.js"
|
|
63
|
+
},
|
|
64
|
+
"require": {
|
|
65
|
+
"types": "./dist/rspack.d.cts",
|
|
66
|
+
"default": "./dist/rspack.cjs"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"./types": {
|
|
70
|
+
"import": {
|
|
71
|
+
"types": "./dist/types.d.ts",
|
|
72
|
+
"default": "./dist/types.js"
|
|
73
|
+
},
|
|
74
|
+
"require": {
|
|
75
|
+
"types": "./dist/types.d.cts",
|
|
76
|
+
"default": "./dist/types.cjs"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"./vite": {
|
|
80
|
+
"import": {
|
|
81
|
+
"types": "./dist/vite.d.ts",
|
|
82
|
+
"default": "./dist/vite.js"
|
|
83
|
+
},
|
|
84
|
+
"require": {
|
|
85
|
+
"types": "./dist/vite.d.cts",
|
|
86
|
+
"default": "./dist/vite.cjs"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"./webpack": {
|
|
90
|
+
"import": {
|
|
91
|
+
"types": "./dist/webpack.d.ts",
|
|
92
|
+
"default": "./dist/webpack.js"
|
|
93
|
+
},
|
|
94
|
+
"require": {
|
|
95
|
+
"types": "./dist/webpack.d.cts",
|
|
96
|
+
"default": "./dist/webpack.cjs"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"main": "./dist/index.js",
|
|
101
|
+
"module": "./dist/index.js",
|
|
102
|
+
"types": "./dist/index.d.ts",
|
|
103
|
+
"typesVersions": {
|
|
104
|
+
"*": {
|
|
105
|
+
"*": [
|
|
106
|
+
"./dist/*",
|
|
107
|
+
"./*"
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"files": [
|
|
112
|
+
"dist"
|
|
113
|
+
],
|
|
114
|
+
"scripts": {
|
|
115
|
+
"bundle": "tsdown",
|
|
116
|
+
"release": "bun publish --access public"
|
|
117
|
+
},
|
|
118
|
+
"dependencies": {
|
|
119
|
+
"@monstermann/tree-shake-import-namespaces": "^0.2.0",
|
|
120
|
+
"unplugin": "^2.3.4",
|
|
121
|
+
"unplugin-utils": "^0.2.4"
|
|
122
|
+
}
|
|
123
|
+
}
|