feathers-ucan 0.1.0 → 0.1.2

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.
@@ -0,0 +1,3 @@
1
+ // Auth Service Module
2
+ import { AuthService, NotAuthError, UcanStrategy } from '../index.module.js';
3
+ export { AuthService, NotAuthError, UcanStrategy };
@@ -0,0 +1,2 @@
1
+ const mod = require('./auth-service/index.js');
2
+ module.exports = mod;
@@ -0,0 +1 @@
1
+ export * from './auth-service/index.js';
@@ -0,0 +1,3 @@
1
+ // Core Module
2
+ import { CoreCall } from '../index.module.js';
3
+ export { CoreCall };
package/lib/core.cjs ADDED
@@ -0,0 +1,2 @@
1
+ const mod = require('./core/index.js');
2
+ module.exports = mod;
package/lib/core.js ADDED
@@ -0,0 +1 @@
1
+ export * from './core/index.js';
@@ -1 +1 @@
1
- export declare const VERSION = "0.1.0";
1
+ export declare const VERSION = "0.1.2";
@@ -0,0 +1,19 @@
1
+ // Hooks Module
2
+ import {
3
+ ucanAuth,
4
+ allUcanAuth,
5
+ noThrowAuth,
6
+ bareAuth,
7
+ updateUcan,
8
+ anyAuth,
9
+ noThrow
10
+ } from '../index.module.js';
11
+ export {
12
+ ucanAuth,
13
+ allUcanAuth,
14
+ noThrowAuth,
15
+ bareAuth,
16
+ updateUcan,
17
+ anyAuth,
18
+ noThrow
19
+ };
package/lib/hooks.cjs ADDED
@@ -0,0 +1,2 @@
1
+ const mod = require('./hooks/index.js');
2
+ module.exports = mod;
package/lib/hooks.js ADDED
@@ -0,0 +1 @@
1
+ export * from './hooks/index.js';
@@ -0,0 +1,4 @@
1
+ // Types Module - JavaScript doesn't support type exports
2
+ // Types are available through TypeScript declaration files
3
+ // This module exists for consistency but exports nothing at runtime
4
+ export {};
package/lib/types.cjs ADDED
@@ -0,0 +1,2 @@
1
+ const mod = require('./types/index.js');
2
+ module.exports = mod;
package/lib/types.js ADDED
@@ -0,0 +1 @@
1
+ export * from './types/index.js';
@@ -0,0 +1,3 @@
1
+ // Utils Module
2
+ import { loadExists, setExists, getExists, existsPath } from '../index.module.js';
3
+ export { loadExists, setExists, getExists, existsPath };
package/lib/utils.cjs ADDED
@@ -0,0 +1,2 @@
1
+ const mod = require('./utils/index.js');
2
+ module.exports = mod;
package/lib/utils.js ADDED
@@ -0,0 +1 @@
1
+ export * from './utils/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feathers-ucan",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Ucan extension of feathers jwt auth",
5
5
  "source": "src/index.ts",
6
6
  "unpkg": "lib/index.umd.js",
@@ -8,16 +8,45 @@
8
8
  "module": "lib/index.module.js",
9
9
  "types": "lib/index.d.ts",
10
10
  "type": "module",
11
+ "sideEffects": false,
11
12
  "exports": {
12
- "types": "./lib/index.d.ts",
13
- "require": "./lib/index.cjs",
14
- "default": "./lib/index.modern.js"
13
+ ".": {
14
+ "types": "./lib/index.d.ts",
15
+ "require": "./lib/index.cjs",
16
+ "default": "./lib/index.modern.js"
17
+ },
18
+ "./auth-service": {
19
+ "types": "./lib/auth-service.d.ts",
20
+ "import": "./lib/auth-service.js",
21
+ "require": "./lib/auth-service.cjs"
22
+ },
23
+ "./core": {
24
+ "types": "./lib/core.d.ts",
25
+ "import": "./lib/core.js",
26
+ "require": "./lib/core.cjs"
27
+ },
28
+ "./hooks": {
29
+ "types": "./lib/hooks.d.ts",
30
+ "import": "./lib/hooks.js",
31
+ "require": "./lib/hooks.cjs"
32
+ },
33
+ "./types": {
34
+ "types": "./lib/types.d.ts",
35
+ "import": "./lib/types.js",
36
+ "require": "./lib/types.cjs"
37
+ },
38
+ "./utils": {
39
+ "types": "./lib/utils.d.ts",
40
+ "import": "./lib/utils.js",
41
+ "require": "./lib/utils.cjs"
42
+ }
15
43
  },
16
44
  "scripts": {
17
45
  "test": "test",
18
46
  "prebuild": "rimraf lib dist && node scripts/gen-version.js",
19
- "build": "rm -rf lib && microbundle --tsconfig tsconfig.json",
20
- "dev": "microbundle --watch --tsconfig tsconfig.json --no-sourcemap"
47
+ "build": "rm -rf lib && microbundle --tsconfig tsconfig.json && node scripts/create-submodule-exports.js",
48
+ "dev": "microbundle --watch --tsconfig tsconfig.json --no-sourcemap",
49
+ "dev:modules": "microbundle src/auth-service.ts src/core.ts src/hooks.ts src/types.ts src/utils.ts --watch --tsconfig tsconfig.json --no-sourcemap --no-pkg-main"
21
50
  },
22
51
  "files": [
23
52
  "lib"