@usehercules/auth 0.1.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.
@@ -0,0 +1,22 @@
1
+
2
+ 
3
+ > @usehercules/auth@1.0.0 build /Users/grantgurvis/Documents/js/packages/auth
4
+ > tsup
5
+
6
+ CLI Building entry: src/index.ts
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.5.0
9
+ CLI Using tsup config: /Users/grantgurvis/Documents/js/packages/auth/tsup.config.ts
10
+ CLI Target: es2022
11
+ CJS Build start
12
+ ESM Build start
13
+ CJS dist/index.cjs 1.77 KB
14
+ CJS dist/index.cjs.map 300.00 B
15
+ CJS ⚡️ Build success in 10ms
16
+ ESM dist/index.js 170.00 B
17
+ ESM dist/index.js.map 248.00 B
18
+ ESM ⚡️ Build success in 10ms
19
+ DTS Build start
20
+ DTS ⚡️ Build success in 230ms
21
+ DTS dist/index.d.cts 179.00 B
22
+ DTS dist/index.d.ts 179.00 B
@@ -0,0 +1,5 @@
1
+
2
+ 
3
+ > @usehercules/auth@0.1.0 test /Users/grantgurvis/Documents/js/packages/auth
4
+ > exit 0
5
+
package/dist/index.cjs ADDED
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
+ oidc: () => oidc,
34
+ reactOidc: () => reactOidc
35
+ });
36
+ module.exports = __toCommonJS(index_exports);
37
+ var oidc = __toESM(require("oidc-client-ts"), 1);
38
+ var reactOidc = __toESM(require("react-oidc-context"), 1);
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {
41
+ oidc,
42
+ reactOidc
43
+ });
44
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import * as oidc from \"oidc-client-ts\";\nimport * as reactOidc from \"react-oidc-context\";\n\nexport { oidc, reactOidc };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAAsB;AACtB,gBAA2B;","names":[]}
@@ -0,0 +1,4 @@
1
+ import * as oidcClientTs from 'oidc-client-ts';
2
+ export { oidcClientTs as oidc };
3
+ import * as reactOidcContext from 'react-oidc-context';
4
+ export { reactOidcContext as reactOidc };
@@ -0,0 +1,4 @@
1
+ import * as oidcClientTs from 'oidc-client-ts';
2
+ export { oidcClientTs as oidc };
3
+ import * as reactOidcContext from 'react-oidc-context';
4
+ export { reactOidcContext as reactOidc };
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ // src/index.ts
2
+ import * as oidc from "oidc-client-ts";
3
+ import * as reactOidc from "react-oidc-context";
4
+ export {
5
+ oidc,
6
+ reactOidc
7
+ };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import * as oidc from \"oidc-client-ts\";\nimport * as reactOidc from \"react-oidc-context\";\n\nexport { oidc, reactOidc };\n"],"mappings":";AAAA,YAAY,UAAU;AACtB,YAAY,eAAe;","names":[]}
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@usehercules/auth",
3
+ "version": "0.1.0",
4
+ "description": "Authentication utilities for Hercules applications using OIDC",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "author": "Hercules Team",
9
+ "license": "MIT",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/withzeusai/hercules-js.git",
13
+ "directory": "packages/auth"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "dependencies": {
19
+ "oidc-client-ts": "^3.3.0",
20
+ "react-oidc-context": "^3.3.0",
21
+ "typescript": "^5.8.3"
22
+ },
23
+ "peerDependencies": {
24
+ "react": ">=16.14.0"
25
+ },
26
+ "devDependencies": {
27
+ "tsup": "^8.5.0"
28
+ },
29
+ "scripts": {
30
+ "build": "tsup",
31
+ "dev": "tsup --watch",
32
+ "test": "exit 0"
33
+ }
34
+ }
package/src/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ import * as oidc from "oidc-client-ts";
2
+ import * as reactOidc from "react-oidc-context";
3
+
4
+ export { oidc, reactOidc };
package/tsconfig.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "compilerOptions": {
3
+ // Language and environment
4
+ "target": "ES2022",
5
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
6
+ "module": "ESNext",
7
+ "moduleResolution": "bundler",
8
+
9
+ // Emit
10
+ "declaration": true,
11
+ "declarationMap": true,
12
+ "sourceMap": true,
13
+ "outDir": "dist",
14
+ "removeComments": true,
15
+ "importHelpers": true,
16
+
17
+ // Interop constraints
18
+ "isolatedModules": true,
19
+ "allowSyntheticDefaultImports": true,
20
+ "esModuleInterop": true,
21
+ "forceConsistentCasingInFileNames": true,
22
+ "verbatimModuleSyntax": true,
23
+
24
+ // Type checking
25
+ "strict": true,
26
+ "noUnusedLocals": true,
27
+ "noUnusedParameters": true,
28
+ "exactOptionalPropertyTypes": true,
29
+ "noImplicitReturns": true,
30
+ "noFallthroughCasesInSwitch": true,
31
+ "noUncheckedIndexedAccess": true,
32
+ "noImplicitOverride": true,
33
+
34
+ // JSX (for React peer dependency)
35
+ "jsx": "react-jsx",
36
+
37
+ // Skip type checking of declaration files
38
+ "skipLibCheck": true
39
+ },
40
+ "include": [
41
+ "src/**/*"
42
+ ],
43
+ "exclude": [
44
+ "node_modules",
45
+ "dist",
46
+ "**/*.test.*",
47
+ "**/*.spec.*"
48
+ ]
49
+ }
package/tsup.config.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { defineConfig } from "tsup";
2
+
3
+ export default defineConfig((options) => [
4
+ {
5
+ ...options,
6
+ entry: ["src/index.ts"],
7
+ format: ["cjs", "esm"],
8
+ dts: true,
9
+ sourcemap: true,
10
+ },
11
+ ]);