@fncts/pattern 0.0.22 → 0.0.24

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 ADDED
@@ -0,0 +1,26 @@
1
+ Copyright (c) 2022, Peter Krol
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are met:
5
+
6
+ 1. Redistributions of source code must retain the above copyright notice, this
7
+ list of conditions and the following disclaimer.
8
+
9
+ 2. Redistributions in binary form must reproduce the above copyright notice,
10
+ this list of conditions and the following disclaimer in the documentation
11
+ and/or other materials provided with the distribution.
12
+
13
+ 3. Neither the name of the copyright holder nor the names of its
14
+ contributors may be used to endorse or promote products derived from
15
+ this software without specific prior written permission.
16
+
17
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
21
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/_cjs/index.cjs CHANGED
@@ -1,30 +1,30 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let ts_pattern = require("ts-pattern");
3
+ //#region build/esm/index.js
4
+ /**
5
+ *
6
+ * @tsplus getter global match
7
+ */
8
+ const match = ts_pattern.match;
9
+ //#endregion
6
10
  Object.defineProperty(exports, "P", {
7
- enumerable: true,
8
- get: function () {
9
- return _tsPattern.P;
10
- }
11
+ enumerable: true,
12
+ get: function() {
13
+ return ts_pattern.P;
14
+ }
11
15
  });
12
16
  Object.defineProperty(exports, "Pattern", {
13
- enumerable: true,
14
- get: function () {
15
- return _tsPattern.Pattern;
16
- }
17
+ enumerable: true,
18
+ get: function() {
19
+ return ts_pattern.Pattern;
20
+ }
17
21
  });
18
22
  Object.defineProperty(exports, "isMatching", {
19
- enumerable: true,
20
- get: function () {
21
- return _tsPattern.isMatching;
22
- }
23
+ enumerable: true,
24
+ get: function() {
25
+ return ts_pattern.isMatching;
26
+ }
23
27
  });
24
- exports.match = void 0;
25
- var _tsPattern = /*#__PURE__*/require("ts-pattern");
26
- /**
27
- * @tsplus getter global match
28
- */
29
- const match = exports.match = _tsPattern.match;
28
+ exports.match = match;
29
+
30
30
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
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","ignoreList":[]}
1
+ {"version":3,"file":"index.cjs","names":["_match"],"sources":["../esm/index.js"],"sourcesContent":["import { match as _match } from \"ts-pattern\";\n/**\n *\n * @tsplus getter global match\n */\nexport const match = _match;\nexport { isMatching, P, Pattern } from \"ts-pattern\";\n//# sourceMappingURL=index.js.map"],"mappings":";;;;;;;AAKA,MAAa,QAAQA,WAAAA"}
package/_mjs/index.mjs CHANGED
@@ -1,7 +1,11 @@
1
- import { match as _match } from "ts-pattern";
1
+ import { P, Pattern, isMatching, match as match$1 } from "ts-pattern";
2
+ //#region build/esm/index.js
2
3
  /**
3
- * @tsplus getter global match
4
- */
5
- export const match = _match;
6
- export { isMatching, P, Pattern } from "ts-pattern";
4
+ *
5
+ * @tsplus getter global match
6
+ */
7
+ const match = match$1;
8
+ //#endregion
9
+ export { P, Pattern, isMatching, match };
10
+
7
11
  //# sourceMappingURL=index.mjs.map
@@ -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,GAAkEC,MAAM;AAE1F,SAASC,UAAU,EAAEC,CAAC,EAAEC,OAAO,QAAQ,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"index.mjs","names":["_match"],"sources":["../esm/index.js"],"sourcesContent":["import { match as _match } from \"ts-pattern\";\n/**\n *\n * @tsplus getter global match\n */\nexport const match = _match;\nexport { isMatching, P, Pattern } from \"ts-pattern\";\n//# sourceMappingURL=index.js.map"],"mappings":";;;;;;AAKA,MAAa,QAAQA"}
package/_src/index.ts CHANGED
@@ -1,11 +1,9 @@
1
- import type { unset } from "ts-pattern/dist/internals/symbols";
2
- import type { Match } from "ts-pattern/dist/types/Match";
3
-
4
1
  import { match as _match } from "ts-pattern";
5
2
 
6
3
  /**
4
+ *
7
5
  * @tsplus getter global match
8
6
  */
9
- export const match: <input, output = unset>(value: input) => Match<input, output> = _match;
7
+ export const match: typeof _match = _match;
10
8
 
11
9
  export { isMatching, P, Pattern } from "ts-pattern";
package/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import type { unset } from "ts-pattern/dist/internals/symbols";
2
- import type { Match } from "ts-pattern/dist/types/Match";
1
+ import { match as _match } from "ts-pattern";
3
2
  /**
4
3
  * @tsplus getter global match
5
4
  * @tsplus location "@fncts/pattern/index"
6
5
  */
7
- export declare const match: <input, output = unset>(value: input) => Match<input, output>;
6
+ export declare const match: typeof _match;
8
7
  export { isMatching, P, Pattern } from "ts-pattern";
package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "@fncts/pattern",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/0x706b/fncts"
7
+ },
4
8
  "dependencies": {
5
9
  "ts-pattern": "^5.7.1"
6
10
  },