@cedarjs/auth-auth0-setup 6.0.0-canary.2760 → 6.0.0-canary.2762
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/index.js +1 -22
- package/dist/setup.js +4 -41
- package/dist/setupHandler.d.ts.map +1 -1
- package/dist/setupHandler.js +11 -42
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var index_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(index_exports);
|
|
18
|
-
__reExport(index_exports, require("./setup.js"), module.exports);
|
|
19
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
-
0 && (module.exports = {
|
|
21
|
-
...require("./setup.js")
|
|
22
|
-
});
|
|
1
|
+
export * from "./setup.js";
|
package/dist/setup.js
CHANGED
|
@@ -1,53 +1,16 @@
|
|
|
1
|
-
|
|
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
|
-
var setup_exports = {};
|
|
30
|
-
__export(setup_exports, {
|
|
31
|
-
builder: () => builder,
|
|
32
|
-
command: () => command,
|
|
33
|
-
description: () => description,
|
|
34
|
-
handler: () => handler
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(setup_exports);
|
|
37
|
-
var import_cli_helpers = require("@cedarjs/cli-helpers");
|
|
1
|
+
import { standardAuthBuilder } from "@cedarjs/cli-helpers";
|
|
38
2
|
const command = "auth0";
|
|
39
3
|
const description = "Set up auth for for Auth0";
|
|
40
4
|
function builder(yargs) {
|
|
41
|
-
return
|
|
5
|
+
return standardAuthBuilder(yargs);
|
|
42
6
|
}
|
|
43
7
|
async function handler(options) {
|
|
44
8
|
const { handler: handler2 } = await import("./setupHandler.js");
|
|
45
9
|
return handler2(options);
|
|
46
10
|
}
|
|
47
|
-
|
|
48
|
-
0 && (module.exports = {
|
|
11
|
+
export {
|
|
49
12
|
builder,
|
|
50
13
|
command,
|
|
51
14
|
description,
|
|
52
15
|
handler
|
|
53
|
-
}
|
|
16
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupHandler.d.ts","sourceRoot":"","sources":["../src/setupHandler.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"setupHandler.d.ts","sourceRoot":"","sources":["../src/setupHandler.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAStC,wBAAsB,OAAO,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,IAAI,iBAoCtD"}
|
package/dist/setupHandler.js
CHANGED
|
@@ -1,45 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
var setupHandler_exports = {};
|
|
30
|
-
__export(setupHandler_exports, {
|
|
31
|
-
handler: () => handler
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(setupHandler_exports);
|
|
34
|
-
var import_node_fs = __toESM(require("node:fs"));
|
|
35
|
-
var import_path = __toESM(require("path"));
|
|
36
|
-
var import_cli_helpers = require("@cedarjs/cli-helpers");
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { standardAuthHandler } from "@cedarjs/cli-helpers";
|
|
37
4
|
const { version } = JSON.parse(
|
|
38
|
-
|
|
5
|
+
fs.readFileSync(
|
|
6
|
+
path.resolve(import.meta.dirname, "../package.json"),
|
|
7
|
+
"utf-8"
|
|
8
|
+
)
|
|
39
9
|
);
|
|
40
10
|
async function handler({ force: forceArg }) {
|
|
41
|
-
|
|
42
|
-
basedir:
|
|
11
|
+
standardAuthHandler({
|
|
12
|
+
basedir: import.meta.dirname,
|
|
43
13
|
forceArg,
|
|
44
14
|
provider: "auth0",
|
|
45
15
|
authDecoderImport: "import { authDecoder } from '@cedarjs/auth-auth0-api'",
|
|
@@ -74,7 +44,6 @@ async function handler({ force: forceArg }) {
|
|
|
74
44
|
]
|
|
75
45
|
});
|
|
76
46
|
}
|
|
77
|
-
|
|
78
|
-
0 && (module.exports = {
|
|
47
|
+
export {
|
|
79
48
|
handler
|
|
80
|
-
}
|
|
49
|
+
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/auth-auth0-setup",
|
|
3
|
-
"version": "6.0.0-canary.
|
|
3
|
+
"version": "6.0.0-canary.2762",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
7
7
|
"directory": "packages/auth-providers/auth0/setup"
|
|
8
8
|
},
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"type": "
|
|
10
|
+
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"scripts": {
|
|
31
|
-
"build": "node ./build.mts
|
|
31
|
+
"build": "node ./build.mts",
|
|
32
32
|
"build:pack": "yarn pack -o cedarjs-auth-auth0-setup.tgz",
|
|
33
|
-
"build:types": "tsc --build --verbose ./tsconfig.json",
|
|
33
|
+
"build:types": "tsc --build --verbose ./tsconfig.build.json",
|
|
34
34
|
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
|
|
35
35
|
"check:attw": "yarn cedar-fwtools-attw",
|
|
36
36
|
"check:package": "concurrently npm:check:attw yarn:publint",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"test:watch": "vitest watch"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@cedarjs/cli-helpers": "6.0.0-canary.
|
|
42
|
+
"@cedarjs/cli-helpers": "6.0.0-canary.2762"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@arethetypeswrong/cli": "0.18.5",
|
|
46
|
-
"@cedarjs/framework-tools": "6.0.0-canary.
|
|
46
|
+
"@cedarjs/framework-tools": "6.0.0-canary.2762",
|
|
47
47
|
"@types/yargs": "17.0.35",
|
|
48
48
|
"concurrently": "9.2.4",
|
|
49
49
|
"publint": "0.3.22",
|