context 3.0.1 → 3.0.2-dev-fcaa09

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.1",
2
+ "version": "3.0.2-dev-fcaa09",
3
3
  "license": "MIT",
4
4
  "main": "./dist/cjs/context.js",
5
5
  "types": "./types/context.d.ts",
@@ -11,7 +11,7 @@
11
11
  "release": "vx release"
12
12
  },
13
13
  "dependencies": {
14
- "vest-utils": "^0.0.2"
14
+ "vest-utils": "^0.0.3-dev-fcaa09"
15
15
  },
16
16
  "module": "./dist/es/context.production.js",
17
17
  "exports": {
package/tsconfig.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "extends": "../../tsconfig.json",
3
+ "rootDir": ".",
3
4
  "compilerOptions": {
5
+ "baseUrl": ".",
4
6
  "declarationMap": true,
5
7
  "declarationDir": "./types",
6
- "outDir": "./dist"
8
+ "outDir": "./dist",
9
+ "paths": {
10
+ "context": ["src/context.ts"]
11
+ }
7
12
  }
8
13
  }
@@ -1,4 +1,4 @@
1
- type CB = (...args: any[]) => any;
1
+ import { CB } from 'vest-utils';
2
2
  declare function createContext<T extends unknown>(defaultContextValue?: T): CtxApi<T>;
3
3
  declare function createCascade<T extends Record<string, unknown>>(init?: (value: Partial<T>, parentContext: T | void) => T | null): CtxCascadeApi<T>;
4
4
  type ContextConsumptionApi<T> = {
@@ -13,3 +13,4 @@ type CtxCascadeApi<T> = ContextConsumptionApi<T> & {
13
13
  bind: <Fn extends CB>(value: Partial<T>, fn: Fn) => Fn;
14
14
  };
15
15
  export { createContext, createCascade, CtxApi, CtxCascadeApi };
16
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,MAAW,MAAM,YAAY,CAAC;AAWrC,iBAAgB,aAAa,CAAC,CAAC,SAAS,OAAO,EAC7C,mBAAmB,CAAC,EAAE,CAAC,GACtB,MAAM,CAAC,CAAC,CAAC,CAmCX;AAED,iBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7D,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,GAAG,IAAI,KAAK,CAAC,GAAG,IAAI,GAC9D,aAAa,CAAC,CAAC,CAAC,CA6BlB;AAED,KAAK,qBAAqB,CAAC,CAAC,IAAI;IAC9B,GAAG,EAAE,MAAM,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,CAAC,CAAC;CACpC,CAAC;AAEF,KAAY,MAAM,CAAC,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,GAAG;IACjD,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CACtC,CAAC;AAEF,KAAY,aAAa,CAAC,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,GAAG;IACxD,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9C,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;CACxD,CAAC"}