@fncts/pattern 0.0.14 → 0.0.16

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 CHANGED
@@ -26,6 +26,5 @@ var _tsPattern = /*#__PURE__*/require("ts-pattern");
26
26
  /**
27
27
  * @tsplus getter global match
28
28
  */
29
- const match = _tsPattern.match;
30
- exports.match = match;
29
+ const match = exports.match = _tsPattern.match;
31
30
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["_tsPattern","require","match","_match","exports"],"sources":["../_src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAAA,UAAA,gBAAAC,OAAA;AAEA;;;AAGO,MAAMC,KAAK,GAGdC,gBAAM;AAACC,OAAA,CAAAF,KAAA,GAAAA,KAAA"}
1
+ {"version":3,"file":"index.cjs","names":["_tsPattern","require","match","exports","_match"],"sources":["../_src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAAA,UAAA,gBAAAC,OAAA;AAEA;;;AAGO,MAAMC,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAkEE,gBAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["match","_match","isMatching","P","Pattern"],"sources":["../_src/index.ts"],"sourcesContent":[null],"mappings":"AAGA,SAASA,KAAK,IAAIC,MAAM,QAAQ,YAAY;AAE5C;;;AAGA,OAAO,MAAMD,KAAK,GAGdC,MAAM;AAEV,SAASC,UAAU,EAAEC,CAAC,EAAEC,OAAO,QAAQ,YAAY"}
1
+ {"version":3,"file":"index.mjs","names":["match","_match","isMatching","P","Pattern"],"sources":["../_src/index.ts"],"sourcesContent":[null],"mappings":"AAGA,SAASA,KAAK,IAAIC,MAAM,QAAQ,YAAY;AAE5C;;;AAGA,OAAO,MAAMD,KAAK,GAAkEC,MAAM;AAE1F,SAASC,UAAU,EAAEC,CAAC,EAAEC,OAAO,QAAQ,YAAY"}
package/_src/index.ts CHANGED
@@ -6,9 +6,6 @@ import { match as _match } from "ts-pattern";
6
6
  /**
7
7
  * @tsplus getter global match
8
8
  */
9
- export const match: {
10
- <input, output = unset>(value: input): Match<input, output>;
11
- <input extends [any, ...any], output = unset>(value: input): Match<input, output>;
12
- } = _match;
9
+ export const match: <input, output = unset>(value: input) => Match<input, output> = _match;
13
10
 
14
11
  export { isMatching, P, Pattern } from "ts-pattern";
package/index.d.ts CHANGED
@@ -4,8 +4,5 @@ import type { Match } from "ts-pattern/dist/types/Match";
4
4
  * @tsplus getter global match
5
5
  * @tsplus location "@fncts/pattern/index"
6
6
  */
7
- export declare const match: {
8
- <input, output = unset>(value: input): Match<input, output>;
9
- <input extends [any, ...any], output = unset>(value: input): Match<input, output>;
10
- };
7
+ export declare const match: <input, output = unset>(value: input) => Match<input, output>;
11
8
  export { isMatching, P, Pattern } from "ts-pattern";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@fncts/pattern",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "dependencies": {
5
- "ts-pattern": "^4.2.2"
5
+ "ts-pattern": "^5.0.8"
6
6
  },
7
7
  "exports": {
8
8
  "./*": {