@effect/match
Advanced tools
Comparing version 0.1.1 to 0.2.0
/** | ||
* @since 1.0.0 | ||
*/ | ||
import type { ExtractMatch } from "@effect/match/internal/ExtractMatch"; | ||
import * as E from "@effect/data/Either"; | ||
import * as O from "@effect/data/Option"; | ||
import type { Predicate, Refinement } from "@effect/data/Predicate"; | ||
import type * as AST from "@fp-ts/schema/AST"; | ||
import * as S from "@fp-ts/schema/Schema"; | ||
import type { ExtractMatch } from "@effect/match/internal/ExtractMatch"; | ||
import type * as AST from "@effect/schema/AST"; | ||
import * as S from "@effect/schema/Schema"; | ||
/** | ||
@@ -182,2 +182,3 @@ * @category model | ||
export declare const _undefined: SafeSchema<undefined, undefined>; | ||
export { _undefined as undefined }; | ||
export { | ||
@@ -188,3 +189,3 @@ /** | ||
*/ | ||
_undefined as undefined, }; | ||
_null as null, }; | ||
/** | ||
@@ -196,10 +197,4 @@ * @tsplus static effect/match/Matcher.Ops null | ||
export declare const _null: SafeSchema<null, null>; | ||
export { | ||
/** | ||
* @category predicates | ||
* @since 1.0.0 | ||
*/ | ||
_null as null, }; | ||
/** | ||
* @category predicates | ||
* @tsplus static effect/match/Matcher.Ops bigint | ||
@@ -206,0 +201,0 @@ * @since 1.0.0 |
10
index.js
@@ -11,6 +11,10 @@ "use strict"; | ||
var RA = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/data/ReadonlyArray")); | ||
var P = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fp-ts/schema/Parser")); | ||
var S = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fp-ts/schema/Schema")); | ||
var P = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/schema/Parser")); | ||
var S = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/schema/Schema")); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
class TypeMatcher { | ||
@@ -190,3 +194,2 @@ constructor(cases) { | ||
const _null = _null_1; | ||
exports._null = _null; | ||
/** | ||
@@ -197,2 +200,3 @@ * @category predicates | ||
*/ | ||
exports._null = _null; | ||
const bigint = /*#__PURE__*/safe_1(S.bigint); | ||
@@ -199,0 +203,0 @@ /** |
{ | ||
"name": "@effect/match", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
@@ -11,3 +11,3 @@ "repository": { | ||
"@effect/data": "^0.2.0", | ||
"@fp-ts/schema": "^0.3.2" | ||
"@effect/schema": "~0.0.1" | ||
}, | ||
@@ -14,0 +14,0 @@ "main": "./index.js", |
@@ -203,10 +203,4 @@ <h3 align="center"> | ||
## Credits | ||
This library is built upon the great work of: | ||
- [@fp-ts/schema](https://github.com/fp-ts/schema). | ||
## License | ||
The MIT License (MIT) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66931
868
206
+ Added@effect/schema@~0.0.1
+ Added@effect/data@0.3.3(transitive)
+ Added@effect/schema@0.0.5(transitive)
- Removed@fp-ts/schema@^0.3.2
- Removed@fp-ts/schema@0.3.2(transitive)