@rcompat/test 0.6.0 → 0.7.0

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.
@@ -1,7 +1,5 @@
1
1
  import type Test from "#Test";
2
- import type Not from "@rcompat/type/Not";
3
- import type Print from "@rcompat/type/Print";
4
- import type UnknownFunction from "@rcompat/type/UnknownFunction";
2
+ import type { Not, Print, UnknownFunction } from "@rcompat/type";
5
3
  type Equals<X, Y> = (<T>() => T extends X ? true : false) extends <T>() => T extends Y ? true : false ? true : false;
6
4
  export default class Assert<const Actual> {
7
5
  #private;
@@ -1,5 +1,5 @@
1
1
  import type Asserter from "#Asserter";
2
- import type MaybePromise from "@rcompat/type/MaybePromise";
2
+ import type { MaybePromise } from "@rcompat/type";
3
3
  type Body = (asserter: Asserter) => MaybePromise<void>;
4
4
  export { Body as default };
5
5
  //# sourceMappingURL=Body.d.ts.map
@@ -1,4 +1,4 @@
1
- import type MaybePromise from "@rcompat/type/MaybePromise";
1
+ import type { MaybePromise } from "@rcompat/type";
2
2
  type End = () => MaybePromise<void>;
3
3
  export type { End as default };
4
4
  //# sourceMappingURL=End.d.ts.map
@@ -14,8 +14,7 @@ const checks = [
14
14
  [set.is, (x, y) => set.is(y) && set.equal(x, y)],
15
15
  [map.is, (x, y) => map.is(y) && map.equal(x, y)],
16
16
  [fn.is, (x, y) => fn.is(y) && fn.equal(x, y)],
17
- [record.is, (x, y) => record.is(y)
18
- && record.equal(x, y)],
17
+ [record.is, (x, y) => record.is(y) && record.equal(x, y)],
19
18
  [(_) => true, (_, _1) => false],
20
19
  ];
21
20
  const equals = (x, y) => typeof x === typeof y
@@ -1,4 +1,4 @@
1
- import type UnknownMap from "@rcompat/type/UnknownMap";
1
+ import type { UnknownMap } from "@rcompat/type";
2
2
  declare const _default: (map: UnknownMap) => {
3
3
  [k: string]: unknown;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type UnknownFunction from "@rcompat/type/UnknownFunction";
1
+ import type { UnknownFunction } from "@rcompat/type";
2
2
  declare const _default: {
3
3
  equal: <T extends UnknownFunction>(x: T, y: T) => boolean;
4
4
  is: (x: unknown) => x is UnknownFunction;
@@ -1,4 +1,4 @@
1
- import type UnknownMap from "@rcompat/type/UnknownMap";
1
+ import type { UnknownMap } from "@rcompat/type";
2
2
  declare const _default: {
3
3
  equal: <T extends UnknownMap>(x: T, y: T) => boolean;
4
4
  include: <T extends UnknownMap>(x: T, y: T) => boolean;
@@ -1,4 +1,4 @@
1
- import type Dict from "@rcompat/type/Dict";
1
+ import type { Dict } from "@rcompat/type";
2
2
  declare const _default: {
3
3
  equal: <T extends Dict>(x: T, y: T) => boolean;
4
4
  include: <T extends Dict>(x: T, y: T) => boolean;
@@ -1,4 +1,4 @@
1
- import type UnknownSet from "@rcompat/type/UnknownSet";
1
+ import type { UnknownSet } from "@rcompat/type";
2
2
  declare const _default: {
3
3
  equal: <T extends UnknownSet>(x: T, y: T) => boolean;
4
4
  include: <T extends UnknownSet>(x: T, y: T) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rcompat/test",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Standard library testing",
5
5
  "bugs": "https://github.com/rcompat/rcompat/issues",
6
6
  "license": "MIT",
@@ -15,7 +15,8 @@
15
15
  "directory": "packages/test"
16
16
  },
17
17
  "devDependencies": {
18
- "@rcompat/fs": "^0.23.0"
18
+ "@rcompat/fs": "^0.24.0",
19
+ "@rcompat/type": "^0.8.0"
19
20
  },
20
21
  "type": "module",
21
22
  "imports": {