@gasket/plugin-fastify 7.5.2 → 7.5.3

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/cjs/create.cjs CHANGED
@@ -20,8 +20,8 @@ function _interop_require_default(obj) {
20
20
  default: obj
21
21
  };
22
22
  }
23
- const __filename1 = (0, _url.fileURLToPath)(require("url").pathToFileURL(__filename).toString());
24
- const __dirname = (0, _path.dirname)(__filename1);
23
+ const fileName = (0, _url.fileURLToPath)(require("url").pathToFileURL(__filename).toString());
24
+ const dirName = (0, _path.dirname)(fileName);
25
25
  const { name, version, devDependencies } = _packagejson.default;
26
26
  const createTestFiles = ({ files, generatorDir, testPlugins, globIgnore })=>{
27
27
  if (!testPlugins || testPlugins.length === 0) return;
@@ -52,7 +52,7 @@ const createTestFiles = ({ files, generatorDir, testPlugins, globIgnore })=>{
52
52
  };
53
53
  async function create(gasket, context) {
54
54
  const { files, typescript, apiApp, addApiRoutes = true, testPlugins, pkg, gasketConfig } = context;
55
- const generatorDir = `${__dirname}/../generator`;
55
+ const generatorDir = `${dirName}/../generator`;
56
56
  gasketConfig.addPlugin('pluginFastify', name);
57
57
  pkg.add('dependencies', {
58
58
  [name]: `^${version}`,
package/lib/create.js CHANGED
@@ -4,8 +4,8 @@
4
4
  import { fileURLToPath } from 'url';
5
5
  import { dirname } from 'path';
6
6
  import packageJson from '../package.json' with { type: 'json' };
7
- const __filename = fileURLToPath(import.meta.url);
8
- const __dirname = dirname(__filename);
7
+ const fileName = fileURLToPath(import.meta.url);
8
+ const dirName = dirname(fileName);
9
9
  const { name, version, devDependencies } = packageJson;
10
10
 
11
11
  const createTestFiles = ({ files, generatorDir, testPlugins, globIgnore }) => {
@@ -42,7 +42,7 @@ export default async function create(gasket, context) {
42
42
  pkg,
43
43
  gasketConfig
44
44
  } = context;
45
- const generatorDir = `${__dirname}/../generator`;
45
+ const generatorDir = `${dirName}/../generator`;
46
46
 
47
47
  gasketConfig.addPlugin('pluginFastify', name);
48
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasket/plugin-fastify",
3
- "version": "7.5.2",
3
+ "version": "7.5.3",
4
4
  "description": "Adds fastify support to your application",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -39,12 +39,12 @@
39
39
  "@types/connect": "^3.4.38",
40
40
  "fastify": "^4.29.1",
41
41
  "vitest": "^3.2.0",
42
- "@gasket/core": "^7.7.2",
43
- "@gasket/plugin-https": "^7.4.0",
42
+ "@gasket/cjs": "^7.1.1",
43
+ "@gasket/core": "^7.7.3",
44
+ "@gasket/plugin-https": "^7.4.1",
44
45
  "@gasket/plugin-logger": "^7.4.0",
45
- "@gasket/plugin-metadata": "^7.5.8",
46
- "create-gasket-app": "^7.4.18",
47
- "@gasket/cjs": "^7.1.1"
46
+ "@gasket/plugin-metadata": "^7.5.9",
47
+ "create-gasket-app": "^7.4.19"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "fastify": "^4.29.1"