From aa6072d5a5984967f9b7e8739c5e4b09b88fa1de Mon Sep 17 00:00:00 2001 From: camarm-dev Date: Sun, 14 Apr 2024 23:41:34 +0200 Subject: [PATCH 1/3] =?UTF-8?q?fix(base64):=20utilisation=20d'une=20librai?= =?UTF-8?q?rie=20externe=20pour=20la=20compatibilit=C3=A9=20avec=20react?= =?UTF-8?q?=20native?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: camarm-dev --- package.json | 1 + src/utils/base64.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/package.json b/package.json index 5dfec56..cee88a1 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ }, "dependencies": { "@types/uuid": "^9.0.8", + "buffer": "^6.0.3", "uuid": "^9.0.1" } } diff --git a/src/utils/base64.ts b/src/utils/base64.ts index 33c3bc4..e1e827b 100644 --- a/src/utils/base64.ts +++ b/src/utils/base64.ts @@ -1,3 +1,5 @@ +import {Buffer} from 'buffer'; + /** * This function decodes the b64 input string, and decode uri escaped chars, if escape function exists. * From 699c47d3b097601570a5f22c88a6b7f5b08eff69 Mon Sep 17 00:00:00 2001 From: camarm-dev Date: Sun, 14 Apr 2024 23:46:07 +0200 Subject: [PATCH 2/3] feat(version): update version + changelog + citations Signed-off-by: camarm-dev --- CHANGELOG.md | 5 ++++- CITATION.cff | 4 ++-- package.json | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ed3459..09dab93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,13 @@ ## Versions - (**1.0.3**: abandonnée: pas de sens de ce système de version.) -- **0.1.0**: Projet initial en **javasciript** +- **0.1.0**: Projet initial en **javascript** - **0.2.0**: Réécriture en **typescript** - **1.0.0**: Quand le module sera stable +## 0.2.9 +- Hotfix: Utilisation de la libraire `buffer` pour la compatibilité react native + ## 0.2.8 - Prise en charge de la **double authentification** - Avec ajout des types diff --git a/CITATION.cff b/CITATION.cff index cce0fb2..d8e9b58 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -19,5 +19,5 @@ keywords: - ecoledirecte - papillon license: GPL-3.0 -version: 0.2.7 -date-released: '2024-03-30' +version: 0.2.9 +date-released: '2024-04-14' diff --git a/package.json b/package.json index cee88a1..e3c0541 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@papillonapp/ed-core", - "version": "0.2.8", + "version": "0.2.9", "description": "API EcoleDirecte pour PapillonApp (c)", "main": "./dist/index.js", "types": "./dist/index.d.ts", From 15b7367872ceb998020e2a51e884c35b63ad9d16 Mon Sep 17 00:00:00 2001 From: camarm-dev Date: Tue, 16 Apr 2024 14:03:38 +0200 Subject: [PATCH 3/3] fix(property): utilisation de guillemets doubles Signed-off-by: camarm-dev --- src/utils/base64.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/base64.ts b/src/utils/base64.ts index e1e827b..ad62a20 100644 --- a/src/utils/base64.ts +++ b/src/utils/base64.ts @@ -1,4 +1,4 @@ -import {Buffer} from 'buffer'; +import {Buffer} from "buffer"; /** * This function decodes the b64 input string, and decode uri escaped chars, if escape function exists.