@tsed/cli-plugin-passport 3.21.0 → 3.21.1

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.
@@ -1,13 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TEMPLATE_DIR = void 0;
4
- const tslib_1 = require("tslib");
5
- const read_pkg_up_1 = tslib_1.__importDefault(require("read-pkg-up"));
6
- const path_1 = require("path");
7
- const filedirname_1 = tslib_1.__importDefault(require("filedirname"));
8
- const [, dir] = (0, filedirname_1.default)();
9
- const { path } = read_pkg_up_1.default.sync({
10
- cwd: (0, path_1.join)(dir, "..", "..")
11
- });
12
- exports.TEMPLATE_DIR = (0, path_1.join)((0, path_1.dirname)(path), "templates");
4
+ const cli_core_1 = require("@tsed/cli-core");
5
+ const [, dir] = (0, cli_core_1.filedirname)();
6
+ exports.TEMPLATE_DIR = (0, cli_core_1.getTemplateDirectory)(dir);
13
7
  //# sourceMappingURL=templateDir.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"templateDir.js","sourceRoot":"","sources":["../../../src/utils/templateDir.ts"],"names":[],"mappings":";;;;AAAA,sEAAoC;AACpC,+BAAmC;AACnC,sEAAsC;AACtC,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,IAAA,qBAAW,GAAE,CAAC;AAE9B,MAAM,EAAC,IAAI,EAAC,GAAG,qBAAS,CAAC,IAAI,CAAC;IAC5B,GAAG,EAAE,IAAA,WAAI,EAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC;CAC3B,CAAE,CAAC;AAES,QAAA,YAAY,GAAG,IAAA,WAAI,EAAC,IAAA,cAAO,EAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC","sourcesContent":["import readPkgUp from \"read-pkg-up\";\nimport {dirname, join} from \"path\";\nimport filedirname from \"filedirname\";\nconst [, dir] = filedirname();\n\nconst {path} = readPkgUp.sync({\n cwd: join(dir, \"..\", \"..\")\n})!;\n\nexport const TEMPLATE_DIR = join(dirname(path), \"templates\");\n"]}
1
+ {"version":3,"file":"templateDir.js","sourceRoot":"","sources":["../../../src/utils/templateDir.ts"],"names":[],"mappings":";;;AAAA,6CAAiE;AAEjE,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,IAAA,sBAAW,GAAE,CAAC;AAEjB,QAAA,YAAY,GAAG,IAAA,+BAAoB,EAAC,GAAG,CAAC,CAAC","sourcesContent":["import {getTemplateDirectory, filedirname} from \"@tsed/cli-core\";\n\nconst [, dir] = filedirname();\n\nexport const TEMPLATE_DIR = getTemplateDirectory(dir);\n"]}
@@ -1,9 +1,4 @@
1
- import readPkgUp from "read-pkg-up";
2
- import { dirname, join } from "path";
3
- import filedirname from "filedirname";
1
+ import { getTemplateDirectory, filedirname } from "@tsed/cli-core";
4
2
  const [, dir] = filedirname();
5
- const { path } = readPkgUp.sync({
6
- cwd: join(dir, "..", "..")
7
- });
8
- export const TEMPLATE_DIR = join(dirname(path), "templates");
3
+ export const TEMPLATE_DIR = getTemplateDirectory(dir);
9
4
  //# sourceMappingURL=templateDir.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"templateDir.js","sourceRoot":"","sources":["../../../src/utils/templateDir.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAC,OAAO,EAAE,IAAI,EAAC,MAAM,MAAM,CAAC;AACnC,OAAO,WAAW,MAAM,aAAa,CAAC;AACtC,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,WAAW,EAAE,CAAC;AAE9B,MAAM,EAAC,IAAI,EAAC,GAAG,SAAS,CAAC,IAAI,CAAC;IAC5B,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC;CAC3B,CAAE,CAAC;AAEJ,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC","sourcesContent":["import readPkgUp from \"read-pkg-up\";\nimport {dirname, join} from \"path\";\nimport filedirname from \"filedirname\";\nconst [, dir] = filedirname();\n\nconst {path} = readPkgUp.sync({\n cwd: join(dir, \"..\", \"..\")\n})!;\n\nexport const TEMPLATE_DIR = join(dirname(path), \"templates\");\n"]}
1
+ {"version":3,"file":"templateDir.js","sourceRoot":"","sources":["../../../src/utils/templateDir.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAEjE,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,WAAW,EAAE,CAAC;AAE9B,MAAM,CAAC,MAAM,YAAY,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC","sourcesContent":["import {getTemplateDirectory, filedirname} from \"@tsed/cli-core\";\n\nconst [, dir] = filedirname();\n\nexport const TEMPLATE_DIR = getTemplateDirectory(dir);\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/cli-plugin-passport",
3
- "version": "3.21.0",
3
+ "version": "3.21.1",
4
4
  "description": "Ts.ED CLI plugin. Add Passport.js support",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/cjs/index.js",
@@ -22,8 +22,8 @@
22
22
  "tslib": "2.3.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@tsed/cli": "3.21.0",
26
- "@tsed/cli-core": "3.21.0",
25
+ "@tsed/cli": "3.21.1",
26
+ "@tsed/cli-core": "3.21.1",
27
27
  "@types/change-case": "^2.3.1"
28
28
  },
29
29
  "peerDependencies": {},