effect 3.19.7 → 3.19.9
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/dist/cjs/Array.js +8 -2
- package/dist/cjs/Array.js.map +1 -1
- package/dist/cjs/Schema.js +1 -1
- package/dist/cjs/Schema.js.map +1 -1
- package/dist/cjs/internal/version.js +1 -1
- package/dist/dts/Array.d.ts.map +1 -1
- package/dist/esm/Array.js +8 -2
- package/dist/esm/Array.js.map +1 -1
- package/dist/esm/Schema.js +1 -1
- package/dist/esm/Schema.js.map +1 -1
- package/dist/esm/internal/version.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +8 -2
- package/src/Schema.ts +1 -1
- package/src/internal/version.ts +1 -1
package/package.json
CHANGED
package/src/Array.ts
CHANGED
|
@@ -4683,7 +4683,10 @@ export const intersectionWith = <A>(isEquivalent: (self: A, that: A) => boolean)
|
|
|
4683
4683
|
const has = containsWith(isEquivalent)
|
|
4684
4684
|
return dual(
|
|
4685
4685
|
2,
|
|
4686
|
-
(self: Iterable<A>, that: Iterable<A>): Array<A> =>
|
|
4686
|
+
(self: Iterable<A>, that: Iterable<A>): Array<A> => {
|
|
4687
|
+
const bs = fromIterable(that)
|
|
4688
|
+
return fromIterable(self).filter((a) => has(bs, a))
|
|
4689
|
+
}
|
|
4687
4690
|
)
|
|
4688
4691
|
}
|
|
4689
4692
|
|
|
@@ -4761,7 +4764,10 @@ export const differenceWith = <A>(isEquivalent: (self: A, that: A) => boolean):
|
|
|
4761
4764
|
const has = containsWith(isEquivalent)
|
|
4762
4765
|
return dual(
|
|
4763
4766
|
2,
|
|
4764
|
-
(self: Iterable<A>, that: Iterable<A>): Array<A> =>
|
|
4767
|
+
(self: Iterable<A>, that: Iterable<A>): Array<A> => {
|
|
4768
|
+
const bs = fromIterable(that)
|
|
4769
|
+
return fromIterable(self).filter((a) => !has(bs, a))
|
|
4770
|
+
}
|
|
4765
4771
|
)
|
|
4766
4772
|
}
|
|
4767
4773
|
|
package/src/Schema.ts
CHANGED
|
@@ -8369,7 +8369,7 @@ const bigDecimalPretty = (): pretty_.Pretty<bigDecimal_.BigDecimal> => (val) =>
|
|
|
8369
8369
|
`BigDecimal(${bigDecimal_.format(bigDecimal_.normalize(val))})`
|
|
8370
8370
|
|
|
8371
8371
|
const bigDecimalArbitrary = (): LazyArbitrary<bigDecimal_.BigDecimal> => (fc) =>
|
|
8372
|
-
fc.tuple(fc.bigInt(), fc.integer({ min:
|
|
8372
|
+
fc.tuple(fc.bigInt(), fc.integer({ min: -18, max: 18 }))
|
|
8373
8373
|
.map(([value, scale]) => bigDecimal_.make(value, scale))
|
|
8374
8374
|
|
|
8375
8375
|
/**
|
package/src/internal/version.ts
CHANGED