@yassidev/nuxt-directus 0.0.23 → 0.0.29

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "directus",
3
3
  "configKey": "directus",
4
- "version": "0.0.23",
4
+ "version": "0.0.29",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -63,8 +63,8 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
63
63
  if (!isPlainObject(defaults)) {
64
64
  return _defu(baseObject, {}, namespace, merger);
65
65
  }
66
- const object = Object.assign({}, defaults);
67
- for (const key in baseObject) {
66
+ const object = { ...defaults };
67
+ for (const key of Object.keys(baseObject)) {
68
68
  if (key === "__proto__" || key === "constructor") {
69
69
  continue;
70
70
  }
@@ -8,7 +8,7 @@ export async function fetchTranslations(locale, config) {
8
8
  return await directus.request(readTranslations({
9
9
  fields: ["key", "value", "id"],
10
10
  limit: -1,
11
- filter: { language: { _eq: locale }, ...i18nPrefix ? { key: { _startsWith: i18nPrefix } } : {} }
11
+ filter: { language: { _eq: locale }, ...i18nPrefix ? { key: { _starts_with: i18nPrefix } } : {} }
12
12
  }));
13
13
  }
14
14
  export async function syncTranslations(locale, translations, config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yassidev/nuxt-directus",
3
- "version": "0.0.23",
3
+ "version": "0.0.29",
4
4
  "description": "A Nuxt module for better integration with Directus CMS.",
5
5
  "repository": "yassilah/nuxt-directus",
6
6
  "license": "MIT",
@@ -28,38 +28,39 @@
28
28
  "dev": "npm run dev:prepare && nuxi dev playground",
29
29
  "dev:build": "nuxi build playground",
30
30
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
31
- "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish --access public && git push --follow-tags",
32
- "lint": "eslint .",
31
+ "release": "npm run lint && npm run prepack && changelogen --release && npm publish --access public && git push --follow-tags",
32
+ "lint": "oxlint && eslint .",
33
+ "lint:fix": "oxlint --fix && eslint . --fix",
33
34
  "test": "vitest run",
34
35
  "test:watch": "vitest watch",
35
36
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
36
37
  },
37
38
  "dependencies": {
38
- "@directus/sdk": "^21.0.0",
39
- "@nuxt/kit": "^4.3.0",
39
+ "@directus/sdk": "^21.3.0",
40
+ "@nuxt/kit": "^4.4.6",
40
41
  "directus-sdk-typegen": "^0.2.1"
41
42
  },
42
43
  "build": {
43
44
  "failOnWarn": false
44
45
  },
45
46
  "devDependencies": {
46
- "@nuxt/devtools": "^3.1.1",
47
- "@nuxt/eslint": "1.13.0",
48
- "@nuxt/eslint-config": "^1.13.0",
47
+ "@nuxt/devtools": "4.0.0-alpha.4",
48
+ "@nuxt/eslint": "1.15.2",
49
+ "@nuxt/eslint-config": "^1.15.2",
49
50
  "@nuxt/image": "^2.0.0",
50
51
  "@nuxt/module-builder": "^1.0.2",
51
- "@nuxt/schema": "^4.3.0",
52
- "@nuxt/test-utils": "^3.23.0",
53
- "@nuxtjs/i18n": "^10.2.1",
54
- "@playwright/test": "^1.58.0",
52
+ "@nuxt/schema": "^4.4.6",
53
+ "@nuxt/test-utils": "^4.0.3",
54
+ "@nuxtjs/i18n": "^10.3.0",
55
+ "@playwright/test": "^1.60.0",
55
56
  "@types/node": "latest",
56
57
  "changelogen": "^0.6.2",
57
- "directus": "^11.14.1",
58
- "eslint": "^9.39.2",
59
- "nuxt": "^4.3.0",
60
- "playwright-core": "^1.58.0",
61
- "typescript": "~5.9.3",
62
- "vitest": "^4.0.18",
63
- "vue-tsc": "^3.2.4"
58
+ "directus": "^11.17.4",
59
+ "eslint": "^10.4.0",
60
+ "nuxt": "^4.4.6",
61
+ "playwright-core": "^1.60.0",
62
+ "typescript": "~6.0.3",
63
+ "vitest": "^4.1.6",
64
+ "vue-tsc": "^3.3.0"
64
65
  }
65
66
  }