From 54486765b994e40b761b0fea13bd47173cbf5ddc Mon Sep 17 00:00:00 2001 From: Baroshem Date: Thu, 19 Dec 2024 13:01:34 +0100 Subject: [PATCH] chore: migrate to nuxt modules --- .stackblitz/app.vue | 2 +- .stackblitz/nuxt.config.ts | 2 +- .stackblitz/package.json | 2 +- CHANGELOG.md | 8 +++--- README.md | 26 +++++++++---------- docs/app.vue | 8 +++--- .../1.getting-started/1.installation.md | 4 +-- .../1.getting-started/2.configuration.md | 2 +- .../1.getting-started/4.contributing.md | 10 +++---- .../2.headers/3.crossOriginEmbedderPolicy.md | 2 +- .../4.utils/1.hide-x-powered-by-header.md | 4 +-- .../4.utils/2.remove-console-loggers.md | 4 +-- docs/content/5.advanced/2.faq.md | 24 ++++++++--------- docs/nuxt.config.ts | 2 +- docs/package.json | 2 +- docs/pages/[...slug].vue | 4 +-- docs/pages/index.vue | 2 +- docs/pages/playground.vue | 2 +- package.json | 8 +++--- src/module.ts | 2 +- 20 files changed, 60 insertions(+), 60 deletions(-) diff --git a/.stackblitz/app.vue b/.stackblitz/app.vue index 5c9bbb74..95c6275b 100644 --- a/.stackblitz/app.vue +++ b/.stackblitz/app.vue @@ -1,5 +1,5 @@ diff --git a/.stackblitz/nuxt.config.ts b/.stackblitz/nuxt.config.ts index 917df206..d3af7757 100644 --- a/.stackblitz/nuxt.config.ts +++ b/.stackblitz/nuxt.config.ts @@ -1,6 +1,6 @@ // https://v3.nuxtjs.org/api/configuration/nuxt.config export default defineNuxtConfig({ - modules: ['nuxt-security'], + modules: ['@nuxtjs/security'], // Following configuration is only necessary to make Stackblitz work correctly. // For local projects, you do not need any configuration to try it out. security: { diff --git a/.stackblitz/package.json b/.stackblitz/package.json index 0b0e8d17..039a5f1a 100644 --- a/.stackblitz/package.json +++ b/.stackblitz/package.json @@ -11,6 +11,6 @@ "nuxt": "^3.11.2" }, "dependencies": { - "nuxt-security": "latest" + "@nuxtjs/security": "latest" } } diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d6f03f5..4bb2656c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,11 +3,11 @@ ## v2.1.4 -[compare changes](https://github.com/Baroshem/nuxt-security/compare/v2.1.3...v2.1.4) +[compare changes](https://github.com/nuxt-modules/security/compare/v2.1.3...v2.1.4) ### 🩹 Fixes -- #564 resolves issue with element.replace on non-string elements ([#564](https://github.com/Baroshem/nuxt-security/issues/564)) +- #564 resolves issue with element.replace on non-string elements ([#564](https://github.com/nuxt-modules/security/issues/564)) ### ❤️ Contributors @@ -15,11 +15,11 @@ ## v2.1.3 -[compare changes](https://github.com/Baroshem/nuxt-security/compare/v2.1.2...v2.1.3) +[compare changes](https://github.com/nuxt-modules/security/compare/v2.1.2...v2.1.3) ### 🩹 Fixes -- #564 resolves issue with element.replace on non-string elements ([#564](https://github.com/Baroshem/nuxt-security/issues/564)) +- #564 resolves issue with element.replace on non-string elements ([#564](https://github.com/nuxt-modules/security/issues/564)) ### ❤️ Contributors diff --git a/README.md b/README.md index 7387e675..40f3a75c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![nuxt-security](https://nuxt-security.vercel.app/preview.png)](https://nuxt-security.vercel.app) +[![nuxt-security](https://security.nuxtjs.org/preview.png)](https://security.nuxtjs.org) [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] @@ -12,8 +12,8 @@ Automatically configure your app to follow OWASP security patterns and principle > This module works with Nuxt 3 only -- [📖  Read the documentation](https://nuxt-security.vercel.app) -- [👾  Playground](https://nuxt-security.vercel.app/playground) +- [📖  Read the documentation](https://security.nuxtjs.org) +- [👾  Playground](https://security.nuxtjs.org/playground) ## Features @@ -40,14 +40,14 @@ You can pass configuration to the module in the `nuxt.config.ts` like following: ```ts export default defineNuxtConfig({ - modules: ["nuxt-security"], + modules: ["@nuxtjs/security"], security: { // options } }) ``` -For all available configuration options check out the [docs](https://nuxt-security.vercel.app). +For all available configuration options check out the [docs](https://security.nuxtjs.org). ## Development @@ -60,13 +60,13 @@ For all available configuration options check out the [docs](https://nuxt-securi -[npm-version-src]: https://img.shields.io/npm/v/nuxt-security/latest.svg -[npm-version-href]: https://npmjs.com/package/nuxt-security -[npm-downloads-src]: https://img.shields.io/npm/dt/nuxt-security.svg -[npm-downloads-href]: https://npmjs.com/package/nuxt-security -[github-actions-ci-src]: https://github.com/baroshem/nuxt-security/actions/workflows/ci.yml/badge.svg -[github-actions-ci-href]: https://github.com/baroshem/nuxt-security/actions?query=workflow%3Aci -[license-src]: https://img.shields.io/npm/l/nuxt-security.svg -[license-href]: https://npmjs.com/package/nuxt-security +[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/security/latest.svg +[npm-version-href]: https://npmjs.com/package/@nuxtjs/security +[npm-downloads-src]: https://img.shields.io/npm/dt/@nuxtjs/security.svg +[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/security +[github-actions-ci-src]: https://github.com/nuxt-modules/security/actions/workflows/ci.yml/badge.svg +[github-actions-ci-href]: https://github.com/nuxt-modules/security/actions?query=workflow%3Aci +[license-src]: https://img.shields.io/npm/l/@nuxtjs/security.svg +[license-href]: https://npmjs.com/package/@nuxtjs/security [nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js [nuxt-href]: https://nuxt.com diff --git a/docs/app.vue b/docs/app.vue index c3d8308b..de6c6c91 100644 --- a/docs/app.vue +++ b/docs/app.vue @@ -19,7 +19,7 @@ const links = [ }, { label: 'Releases', - to: 'https://github.com/Baroshem/nuxt-security/releases', + to: 'https://github.com/nuxt-modules/security/releases', target: '_blank', }, ] @@ -62,7 +62,7 @@ provide('navigation', navigation) Published under MIT License @@ -121,7 +121,7 @@ provide('navigation', navigation) [ { icon: 'i-ph-pen-duotone', label: 'Edit this page', - to: `https://github.com/Baroshem/nuxt-security/edit/main/docs/content/${page?.value?._file}`, + to: `https://github.com/nuxt-modules/security/edit/main/docs/content/${page?.value?._file}`, target: '_blank', }, { icon: 'i-ph-shooting-star-duotone', label: 'Star on GitHub', - to: 'https://github.com/Baroshem/nuxt-security', + to: 'https://github.com/nuxt-modules/security', target: '_blank', }, { diff --git a/docs/pages/index.vue b/docs/pages/index.vue index 5dbd12a8..953af190 100644 --- a/docs/pages/index.vue +++ b/docs/pages/index.vue @@ -6,7 +6,7 @@ definePageMeta({ const seo = { title: 'Nuxt Security', description: 'Automatically configure your app to follow OWASP security patterns and principles by using HTTP Headers and Middleware.', - cover: 'https://nuxt-security.vercel.app/preview.png' + cover: 'https://security.nuxtjs.org/preview.png' } const source = ref('npx nuxi@latest module add security') diff --git a/docs/pages/playground.vue b/docs/pages/playground.vue index eae1f63a..effaf070 100644 --- a/docs/pages/playground.vue +++ b/docs/pages/playground.vue @@ -15,7 +15,7 @@ useSeoMeta({