From 34c67da67b0b0ff648a096588b48949b0a39c7f1 Mon Sep 17 00:00:00 2001 From: Douglas DUTEIL Date: Thu, 21 Nov 2024 21:41:21 +0100 Subject: [PATCH] chore: rename to gouvfr-lasuite --- package-lock.json | 31 ++++++++++--------- package.json | 8 ++--- packages/core/package.json | 15 ++++++++- packages/email/CHANGELOG.md | 6 ++-- packages/email/README.md | 4 +-- src/connectors/crisp.ts | 4 +-- src/managers/moderation.ts | 2 +- src/managers/organization/join.ts | 2 +- .../official-contact-email-verification.ts | 2 +- src/managers/user.ts | 2 +- src/services/did-you-mean.ts | 2 +- src/services/email.ts | 2 +- 12 files changed, 47 insertions(+), 33 deletions(-) diff --git a/package-lock.json b/package-lock.json index df15fda6..4680e8aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,12 +14,12 @@ "dependencies": { "@dotenvx/dotenvx": "^1.19.2", "@fullhuman/postcss-purgecss": "^6.0.0", + "@gouvfr-lasuite/crisp": "https://github.com/douglasduteil/crisp/releases/download/v1.6.1/douglasduteil-crisp-1.6.1.tgz", + "@gouvfr-lasuite/moncomptepro.core": "workspace:*", "@gouvfr-lasuite/moncomptepro.email": "workspace:*", "@gouvfr/dsfr": "^1.12.1", "@kitajs/html": "^4.2.4", "@kitajs/ts-html-plugin": "^4.1.0", - "@numerique-gouv/crisp": "https://github.com/douglasduteil/crisp/releases/download/v1.6.1/douglasduteil-crisp-1.6.1.tgz", - "@numerique-gouv/moncomptepro.core": "workspace:*", "@panva/jose": "^1.9.3", "@sentry/node": "^8.39.0", "@sentry/tracing": "^7.114.0", @@ -1277,6 +1277,17 @@ "postcss": "^8.0.0" } }, + "node_modules/@gouvfr-lasuite/crisp": { + "name": "@douglasduteil/crisp", + "version": "1.6.1", + "resolved": "https://github.com/douglasduteil/crisp/releases/download/v1.6.1/douglasduteil-crisp-1.6.1.tgz", + "integrity": "sha512-fLa2Onk60hMclWoyKkpGpNSwPB3oyXg7fDmFB3t8I/b649IzDWsfYr7YFS9T0gYgaesw0hwhRKa8OT9LJZWIDg==", + "license": "WTFPL" + }, + "node_modules/@gouvfr-lasuite/moncomptepro.core": { + "resolved": "packages/core", + "link": true + }, "node_modules/@gouvfr-lasuite/moncomptepro.email": { "resolved": "packages/email", "link": true @@ -1740,17 +1751,6 @@ "node": ">= 8" } }, - "node_modules/@numerique-gouv/crisp": { - "name": "@douglasduteil/crisp", - "version": "1.6.1", - "resolved": "https://github.com/douglasduteil/crisp/releases/download/v1.6.1/douglasduteil-crisp-1.6.1.tgz", - "integrity": "sha512-fLa2Onk60hMclWoyKkpGpNSwPB3oyXg7fDmFB3t8I/b649IzDWsfYr7YFS9T0gYgaesw0hwhRKa8OT9LJZWIDg==", - "license": "WTFPL" - }, - "node_modules/@numerique-gouv/moncomptepro.core": { - "resolved": "packages/core", - "link": true - }, "node_modules/@opentelemetry/api": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", @@ -11658,8 +11658,9 @@ } }, "packages/core": { - "name": "@numerique-gouv/moncomptepro.core", + "name": "@gouvfr-lasuite/moncomptepro.core", "version": "0.0.0", + "license": "MIT", "dependencies": { "is-disposable-email-domain": "^1.0.7" }, @@ -11686,7 +11687,7 @@ } }, "packages/free-email": { - "name": "@numerique-gouv/moncomptepro.free-email", + "name": "@gouvfr-lasuite/moncomptepro.free-email", "version": "0.0.0", "extraneous": true, "dependencies": { diff --git a/package.json b/package.json index 510d7c0a..0322595b 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ "watch:ejs": "CHOKIDAR_USEPOLLING=true copy-and-watch --clean --watch \"src/views/**/*.ejs\" src/views/*.ejs build/views/", "watch:js": "tsc --watch --preserveWatchOutput", "watch:node": "tsx --watch src/index.ts", - "watch:workspaces:core": "npm run dev --if-present --workspace=@numerique-gouv/moncomptepro.core", - "watch:workspaces:email": "npm run dev --if-present --workspace=@numerique-gouv/moncomptepro.email" + "watch:workspaces:core": "npm run dev --if-present --workspace=@gouvfr-lasuite/moncomptepro.core", + "watch:workspaces:email": "npm run dev --if-present --workspace=@gouvfr-lasuite/moncomptepro.email" }, "prettier": { "plugins": [ @@ -51,8 +51,8 @@ "@gouvfr/dsfr": "^1.12.1", "@kitajs/html": "^4.2.4", "@kitajs/ts-html-plugin": "^4.1.0", - "@numerique-gouv/crisp": "https://github.com/douglasduteil/crisp/releases/download/v1.6.1/douglasduteil-crisp-1.6.1.tgz", - "@numerique-gouv/moncomptepro.core": "workspace:*", + "@gouvfr-lasuite/crisp": "https://github.com/douglasduteil/crisp/releases/download/v1.6.1/douglasduteil-crisp-1.6.1.tgz", + "@gouvfr-lasuite/moncomptepro.core": "workspace:*", "@panva/jose": "^1.9.3", "@sentry/node": "^8.39.0", "@sentry/tracing": "^7.114.0", diff --git a/packages/core/package.json b/packages/core/package.json index 7b52145f..77b186cd 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,16 @@ { - "name": "@numerique-gouv/moncomptepro.core", + "name": "@gouvfr-lasuite/moncomptepro.core", "version": "0.0.0", "private": true, + "homepage": "https://github.com/numerique-gouv/moncomptepro/tree/master/packages/core#readme", + "bugs": "https://github.com/numerique-gouv/moncomptepro/issues", + "repository": { + "type": "git", + "url": "git+https://github.com/numerique-gouv/moncomptepro.git", + "directory": "packages/core" + }, + "license": "MIT", + "sideEffects": false, "type": "module", "imports": { "#src/*": { @@ -38,5 +47,9 @@ "chai": "^5.1.1", "tsx": "^4.17.0", "mocha": "^10.7.3" + }, + "publishConfig": { + "access": "public", + "provenance": true } } diff --git a/packages/email/CHANGELOG.md b/packages/email/CHANGELOG.md index 6b248bc4..eb2121be 100644 --- a/packages/email/CHANGELOG.md +++ b/packages/email/CHANGELOG.md @@ -1,4 +1,4 @@ -# @numerique-gouv/moncomptepro.email +# @gouvfr-lasuite/moncomptepro.email ## 0.0.2-alpha.2 @@ -28,13 +28,13 @@ - [#831](https://github.com/numerique-gouv/moncomptepro/pull/831) [`9d709d3`](https://github.com/numerique-gouv/moncomptepro/commit/9d709d35dfcfd02f13fcf08ad7d5bc2758ae3a47) Thanks [@douglasduteil](https://github.com/douglasduteil)! - (Test de publication) -- [#831](https://github.com/numerique-gouv/moncomptepro/pull/831) [`fc99d9a`](https://github.com/numerique-gouv/moncomptepro/commit/fc99d9a466ef61fe07430960eb17f8c499b3a542) Thanks [@douglasduteil](https://github.com/douglasduteil)! - Utilisation de @numerique-gouv/moncomptepro.email comme package test +- [#831](https://github.com/numerique-gouv/moncomptepro/pull/831) [`fc99d9a`](https://github.com/numerique-gouv/moncomptepro/commit/fc99d9a466ef61fe07430960eb17f8c499b3a542) Thanks [@douglasduteil](https://github.com/douglasduteil)! - Utilisation de @gouvfr-lasuite/moncomptepro.email comme package test ## 0.0.1-alpha.2 ### Patch Changes -- [#831](https://github.com/numerique-gouv/moncomptepro/pull/831) [`fc99d9a`](https://github.com/numerique-gouv/moncomptepro/commit/fc99d9a466ef61fe07430960eb17f8c499b3a542) Thanks [@douglasduteil](https://github.com/douglasduteil)! - Utilisation de @numerique-gouv/moncomptepro.email comme package test +- [#831](https://github.com/numerique-gouv/moncomptepro/pull/831) [`fc99d9a`](https://github.com/numerique-gouv/moncomptepro/commit/fc99d9a466ef61fe07430960eb17f8c499b3a542) Thanks [@douglasduteil](https://github.com/douglasduteil)! - Utilisation de @gouvfr-lasuite/moncomptepro.email comme package test ## 0.0.1-alpha.1 diff --git a/packages/email/README.md b/packages/email/README.md index 339eb8b7..901d1ebf 100644 --- a/packages/email/README.md +++ b/packages/email/README.md @@ -1,9 +1,9 @@ -# @numerique-gouv/moncomptepro.email +# @gouvfr-lasuite/moncomptepro.email ## Usage ```ts -import { DeleteFreeTotpMail } from "@numerique-gouv/moncomptepro.email"; +import { DeleteFreeTotpMail } from "@gouvfr-lasuite/moncomptepro.email"; const transporter = nodemailer.createTransport({ host: "smtp.example.com", diff --git a/src/connectors/crisp.ts b/src/connectors/crisp.ts index 292162b4..3d9df28e 100644 --- a/src/connectors/crisp.ts +++ b/src/connectors/crisp.ts @@ -1,12 +1,12 @@ // -import { fetch_crisp, type Config } from "@numerique-gouv/crisp"; +import { fetch_crisp, type Config } from "@gouvfr-lasuite/crisp"; import type { CreateConversationRoute, SendMessageInAConversationRoute, UpdateConversationMetaRoute, UpdateConversationStateRoute, -} from "@numerique-gouv/crisp/router/conversation"; +} from "@gouvfr-lasuite/crisp/router/conversation"; import { CRISP_BASE_URL, CRISP_IDENTIFIER, diff --git a/src/managers/moderation.ts b/src/managers/moderation.ts index 224b6aee..94f032d5 100644 --- a/src/managers/moderation.ts +++ b/src/managers/moderation.ts @@ -1,4 +1,4 @@ -import { ModerationProcessed } from "@numerique-gouv/moncomptepro.email"; +import { ModerationProcessed } from "@gouvfr-lasuite/moncomptepro.email"; import { isEmpty } from "lodash-es"; import { MONCOMPTEPRO_HOST } from "../config/env"; import { ForbiddenError, NotFoundError } from "../config/errors"; diff --git a/src/managers/organization/join.ts b/src/managers/organization/join.ts index 94b98346..fb6e8dd3 100644 --- a/src/managers/organization/join.ts +++ b/src/managers/organization/join.ts @@ -1,4 +1,4 @@ -import { Welcome } from "@numerique-gouv/moncomptepro.email"; +import { Welcome } from "@gouvfr-lasuite/moncomptepro.email"; import * as Sentry from "@sentry/node"; import { isEmpty, some } from "lodash-es"; import { diff --git a/src/managers/organization/official-contact-email-verification.ts b/src/managers/organization/official-contact-email-verification.ts index c9b6aa89..65fdbec0 100644 --- a/src/managers/organization/official-contact-email-verification.ts +++ b/src/managers/organization/official-contact-email-verification.ts @@ -1,4 +1,4 @@ -import { OfficialContactEmailVerification } from "@numerique-gouv/moncomptepro.email"; +import { OfficialContactEmailVerification } from "@gouvfr-lasuite/moncomptepro.email"; import { isEmpty } from "lodash-es"; import { MONCOMPTEPRO_HOST } from "../../config/env"; import { diff --git a/src/managers/user.ts b/src/managers/user.ts index 15464964..64b790b8 100644 --- a/src/managers/user.ts +++ b/src/managers/user.ts @@ -10,7 +10,7 @@ import { UpdatePersonalDataMail, UpdateTotpApplication, VerifyEmail, -} from "@numerique-gouv/moncomptepro.email"; +} from "@gouvfr-lasuite/moncomptepro.email"; import { isEmpty } from "lodash-es"; import { EmailUnavailableError, diff --git a/src/services/did-you-mean.ts b/src/services/did-you-mean.ts index 29955b2f..35f9e486 100644 --- a/src/services/did-you-mean.ts +++ b/src/services/did-you-mean.ts @@ -1,4 +1,4 @@ -import mostUsedFreeEmailDomains from "@numerique-gouv/moncomptepro.core/data/most-used-free-email-domains.js"; +import mostUsedFreeEmailDomains from "@gouvfr-lasuite/moncomptepro.core/data/most-used-free-email-domains.js"; import { run as spellCheckEmail } from "@zootools/email-spell-checker"; import gouvfrDomains from "../data/gouvfr-domains"; import otherGouvDomains from "../data/other-gouv-domains"; diff --git a/src/services/email.ts b/src/services/email.ts index 5081adae..038b9b70 100644 --- a/src/services/email.ts +++ b/src/services/email.ts @@ -1,6 +1,6 @@ // -import { isAFreeDomain } from "@numerique-gouv/moncomptepro.core/services/email/isAFreeDomain.js"; +import { isAFreeDomain } from "@gouvfr-lasuite/moncomptepro.core/services/email/isAFreeDomain.js"; import { parse_host } from "tld-extract"; import { FEATURE_CONSIDER_ALL_EMAIL_DOMAINS_AS_FREE,