@cedarjs/auth-firebase-setup 9.0.0-canary.1784 → 9.0.0-canary.3124

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.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './setup';
1
+ export * from './setup.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
package/dist/index.js CHANGED
@@ -1,22 +1 @@
1
- "use strict";
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 src_exports = {};
17
- module.exports = __toCommonJS(src_exports);
18
- __reExport(src_exports, require("./setup"), module.exports);
19
- // Annotate the CommonJS export names for ESM import in node:
20
- 0 && (module.exports = {
21
- ...require("./setup")
22
- });
1
+ export * from "./setup.js";
package/dist/setup.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type yargs from 'yargs';
1
+ import type { Argv } from 'yargs';
2
2
  export declare const command = "firebase";
3
3
  export declare const description = "Set up auth for for Firebase";
4
- export declare function builder(yargs: yargs.Argv): yargs.Argv<{
4
+ export declare function builder(yargs: Argv): Argv<{
5
5
  force: boolean;
6
6
  } & {
7
7
  verbose: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,eAAO,MAAM,OAAO,aAAa,CAAA;AACjC,eAAO,MAAM,WAAW,iCAAiC,CAAA;AAEzD,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI;;;;GAExC;AAED,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,OAAO,CAAA;CACf;AAED,wBAAsB,OAAO,CAAC,OAAO,EAAE,IAAI,iBAG1C"}
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAGjC,eAAO,MAAM,OAAO,aAAa,CAAA;AACjC,eAAO,MAAM,WAAW,iCAAiC,CAAA;AAEzD,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI;;;;GAElC;AAED,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,OAAO,CAAA;CACf;AAED,wBAAsB,OAAO,CAAC,OAAO,EAAE,IAAI,iBAG1C"}
package/dist/setup.js CHANGED
@@ -1,53 +1,16 @@
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
- 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/auth/setupHelpers";
38
2
  const command = "firebase";
39
3
  const description = "Set up auth for for Firebase";
40
4
  function builder(yargs) {
41
- return (0, import_cli_helpers.standardAuthBuilder)(yargs);
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
- // Annotate the CommonJS export names for ESM import in node:
48
- 0 && (module.exports = {
11
+ export {
49
12
  builder,
50
13
  command,
51
14
  description,
52
15
  handler
53
- });
16
+ };
@@ -1,3 +1,3 @@
1
- import type { Args } from './setup';
1
+ import type { Args } from './setup.js';
2
2
  export declare function handler({ force: forceArg }: Args): Promise<void>;
3
3
  //# sourceMappingURL=setupHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setupHandler.d.ts","sourceRoot":"","sources":["../src/setupHandler.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAMnC,wBAAsB,OAAO,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,IAAI,iBAmCtD"}
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,iBAmCtD"}
@@ -1,45 +1,15 @@
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
- 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/auth/setupHelpers";
37
4
  const { version } = JSON.parse(
38
- import_node_fs.default.readFileSync(import_path.default.resolve(__dirname, "../package.json"), "utf-8")
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
- (0, import_cli_helpers.standardAuthHandler)({
42
- basedir: __dirname,
11
+ standardAuthHandler({
12
+ basedir: import.meta.dirname,
43
13
  forceArg,
44
14
  provider: "firebase",
45
15
  authDecoderImport: "import { authDecoder } from '@cedarjs/auth-firebase-api'",
@@ -72,7 +42,6 @@ async function handler({ force: forceArg }) {
72
42
  ]
73
43
  });
74
44
  }
75
- // Annotate the CommonJS export names for ESM import in node:
76
- 0 && (module.exports = {
45
+ export {
77
46
  handler
78
- });
47
+ };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@cedarjs/auth-firebase-setup",
3
- "version": "9.0.0-canary.1784+baa47810a",
3
+ "version": "9.0.0-canary.3124",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
7
7
  "directory": "packages/auth-providers/firebase/setup"
8
8
  },
9
9
  "license": "MIT",
10
- "type": "commonjs",
10
+ "type": "module",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./dist/index.d.ts",
@@ -28,31 +28,32 @@
28
28
  "dist"
29
29
  ],
30
30
  "scripts": {
31
- "build": "tsx ./build.mts && yarn build:types",
31
+ "build": "node ./build.mts",
32
32
  "build:pack": "yarn pack -o cedarjs-auth-firebase-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
- "check:attw": "yarn attw -P",
35
+ "check:attw": "yarn cedar-fwtools-attw",
36
36
  "check:package": "concurrently npm:check:attw yarn:publint",
37
37
  "prepublishOnly": "NODE_ENV=production yarn build",
38
38
  "test": "vitest run",
39
39
  "test:watch": "vitest watch"
40
40
  },
41
41
  "dependencies": {
42
- "@cedarjs/cli-helpers": "9.0.0-canary.1784"
42
+ "@cedarjs/cli-helpers": "9.0.0-canary.3124"
43
43
  },
44
44
  "devDependencies": {
45
- "@arethetypeswrong/cli": "0.18.2",
46
- "@cedarjs/framework-tools": "9.0.0-canary.1784",
45
+ "@cedarjs/framework-tools": "9.0.0-canary.3124",
47
46
  "@types/yargs": "17.0.35",
48
- "concurrently": "9.2.1",
49
- "publint": "0.3.17",
50
- "tsx": "4.21.0",
47
+ "concurrently": "9.2.4",
48
+ "publint": "0.3.24",
51
49
  "typescript": "5.9.3",
52
- "vitest": "3.2.4"
50
+ "vitest": "4.1.11"
51
+ },
52
+ "engines": {
53
+ "node": ">=24"
53
54
  },
54
55
  "publishConfig": {
55
56
  "access": "public"
56
57
  },
57
- "gitHead": "baa47810a7defb73de27fdf513b815d679509b5e"
58
+ "gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1"
58
59
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Cedar
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.