@fncts/pattern 0.0.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.
package/_cjs/index.cjs ADDED
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "P", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _tsPattern.P;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "Pattern", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _tsPattern.Pattern;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "isMatching", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _tsPattern.isMatching;
22
+ }
23
+ });
24
+ exports.match = void 0;
25
+
26
+ var _tsPattern = /*#__PURE__*/require("ts-pattern");
27
+
28
+ /**
29
+ * @tsplus getter global match
30
+ */
31
+ const match = _tsPattern.match;
32
+ exports.match = match;
33
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;;AAGO,MAAMA,KAAK,GAAGC,gBAAd","names":["match","_match"],"sourceRoot":"","sources":["../_src/index.ts"],"sourcesContent":[null]}
package/_mjs/index.mjs ADDED
@@ -0,0 +1,8 @@
1
+ import { match as _match } from "ts-pattern";
2
+ /**
3
+ * @tsplus getter global match
4
+ */
5
+
6
+ export const match = _match;
7
+ export { isMatching, P, Pattern } from "ts-pattern";
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","mappings":"AAAA,SAASA,KAAK,IAAIC,MAAlB,QAAgC,YAAhC;AAEA;;;;AAGA,OAAO,MAAMD,KAAK,GAAGC,MAAd;AAEP,SAASC,UAAT,EAAqBC,CAArB,EAAwBC,OAAxB,QAAuC,YAAvC","names":["match","_match","isMatching","P","Pattern"],"sourceRoot":"","sources":["../_src/index.ts"],"sourcesContent":[null]}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @tsplus global
3
+ */
4
+ import { isMatching, match, P, Pattern } from "./index.js";
package/_src/index.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { match as _match } from "ts-pattern";
2
+
3
+ /**
4
+ * @tsplus getter global match
5
+ */
6
+ export const match = _match;
7
+
8
+ export { isMatching, P, Pattern } from "ts-pattern";
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @tsplus getter global match
3
+ * @tsplus location "@fncts/pattern/index"
4
+ */
5
+ export declare const match: <input, output = typeof import("ts-pattern/dist/internals/symbols").unset>(value: input) => import("ts-pattern/dist/types/Match").Match<input, output, [], never>;
6
+ export { isMatching, P, Pattern } from "ts-pattern";
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@fncts/pattern",
3
+ "version": "0.0.2",
4
+ "dependencies": {
5
+ "ts-pattern": "^4.0.3"
6
+ },
7
+ "exports": {
8
+ "./*": {
9
+ "import": "./_mjs/*.mjs",
10
+ "require": "./_cjs/*.cjs"
11
+ }
12
+ },
13
+ "publishConfig": {
14
+ "access": "public"
15
+ }
16
+ }