@takaro/auth 0.0.14 → 0.0.18

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/config.d.ts CHANGED
@@ -40,3 +40,4 @@ export declare const configSchema: {
40
40
  };
41
41
  };
42
42
  export declare const config: Config<IAuthConfig>;
43
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,MAAM,EAAE;QACN,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BxB,CAAC;AAEF,eAAO,MAAM,MAAM,qBAA0C,CAAC"}
package/dist/lib/ory.d.ts CHANGED
@@ -19,3 +19,4 @@ declare class Ory {
19
19
  }
20
20
  export declare const ory: Ory;
21
21
  export {};
22
+ //# sourceMappingURL=ory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ory.d.ts","sourceRoot":"","sources":["../../src/lib/ory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAMlC,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,cAAM,GAAG;IACP,OAAO,CAAC,GAAG,CAAiB;IAE5B,OAAO,CAAC,cAAc,CAAc;IACpC,OAAO,CAAC,cAAc,CAAc;;IAoB9B,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAWjD,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAWlE,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAsC1E,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMzC,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAmBjE,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAcjD,SAAS,CAAC,GAAG,EAAE,OAAO;IAYtB,eAAe,CAAC,EAAE,EAAE,MAAM;CAUjC;AAED,eAAO,MAAM,GAAG,KAAY,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare function createAxiosClient(baseURL: string): import("axios").AxiosInstance;
2
+ //# sourceMappingURL=oryAxiosClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oryAxiosClient.d.ts","sourceRoot":"","sources":["../../src/lib/oryAxiosClient.ts"],"names":[],"mappings":"AAKA,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,iCA8DhD"}
@@ -26,3 +26,4 @@ export interface IPermissionDetails {
26
26
  description: string;
27
27
  }
28
28
  export declare const PERMISSION_DETAILS: Record<PERMISSIONS, IPermissionDetails>;
29
+ //# sourceMappingURL=permissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/lib/permissions.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,MAAM,SAAS;IACf,cAAc,iBAAiB;IAC/B,YAAY,eAAe;IAC3B,cAAc,iBAAiB;IAC/B,YAAY,eAAe;IAC3B,oBAAoB,uBAAuB;IAC3C,cAAc,iBAAiB;IAC/B,gBAAgB,mBAAmB;IACnC,cAAc,iBAAiB;IAC/B,gBAAgB,mBAAmB;IACnC,iBAAiB,oBAAoB;IACrC,eAAe,kBAAkB;IACjC,gBAAgB,mBAAmB;IACnC,kBAAkB,qBAAqB;IACvC,aAAa,gBAAgB;IAC7B,eAAe,kBAAkB;IACjC,YAAY,eAAe;IAC3B,cAAc,iBAAiB;IAC/B,sBAAsB,yBAAyB;IAC/C,oBAAoB,uBAAuB;CAC5C;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,WAAW,EAAE,kBAAkB,CAqGtE,CAAC"}
package/dist/main.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { IAuthConfig, configSchema as authConfigSchema } from './config.js';
2
2
  export { ory } from './lib/ory.js';
3
3
  export * from './lib/permissions.js';
4
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE5E,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,16 +1,13 @@
1
1
  {
2
2
  "name": "@takaro/auth",
3
- "version": "0.0.14",
3
+ "version": "0.0.18",
4
4
  "description": "An opinionated auth handler",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
7
7
  "type": "module",
8
8
  "scripts": {
9
9
  "start:dev": "tsc --watch --preserveWatchOutput -p ./tsconfig.build.json",
10
- "build": "tsc -p ./tsconfig.build.json",
11
- "test": "npm run test:unit --if-present && npm run test:integration --if-present",
12
- "test:unit": "echo 'No tests (yet :))'",
13
- "test:integration": "mocha --config ../../.mocharc.js src/**/*.integration.test.ts"
10
+ "build": "tsc -p ./tsconfig.build.json"
14
11
  },
15
12
  "keywords": [],
16
13
  "author": "",
@@ -1,6 +1,7 @@
1
1
  import { ory } from '../ory.js';
2
2
  import { faker } from '@faker-js/faker';
3
3
  import { expect } from '@takaro/test';
4
+ import { describe, it } from 'node:test';
4
5
 
5
6
  describe('Ory', () => {
6
7
  it('Create and delete identities', async () => {
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../tsconfig.esm.json",
2
+ "extends": "../../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "rootDir": "src",
5
5
  "outDir": "dist"