Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
G1lib.js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libs
G1lib.js
Commits
745df34e
Commit
745df34e
authored
4 years ago
by
Millicent Billette
Browse files
Options
Downloads
Patches
Plain Diff
Bump to v3.1.0
parent
d9c9d253
Branches
Branches containing commit
Tags
v3.1.0
Tags containing commit
No related merge requests found
Pipeline
#11876
failed
4 years ago
Stage: build
Stage: test
Stage: publish
Stage: deploy
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.fr.md
+6
-1
6 additions, 1 deletion
CHANGELOG.fr.md
npm/package.json
+1
-1
1 addition, 1 deletion
npm/package.json
src/dictionary.mjs
+23
-0
23 additions, 0 deletions
src/dictionary.mjs
src/dictionary.test.mjs
+13
-0
13 additions, 0 deletions
src/dictionary.test.mjs
with
43 additions
and
2 deletions
CHANGELOG.fr.md
+
6
−
1
View file @
745df34e
...
...
@@ -8,11 +8,15 @@ et ce projet adhère au [versionnage sémantique](https://semver.org/spec/v2.0.0
## Evolutions probable / Roadmap :
-
GraphQL stuff
-
:::
comme séparateur entre identifiant secret et mdp pour la génération de combinaison à tester (usage principal Gsper)
-
@@@@
comme séparateur entre identifiant secret et mdp pour la génération de combinaison à tester (usage principal Gsper)
-
supprimer automatiquement le code inutile dans les lib (Tree Shaking)
## [Non-publié/Non-Stabilisé] (par [1000i100])
## [Version 3.1.0] - 2021-04-01 (par [1000i100] && [Hugo])
### Ajouté
-
génération du
[
format court d'affichage de pubKey
](
https://forum.duniter.org/t/format-de-checksum/7616
)
## [Version 3.0.2] - 2020-12-10 (par [1000i100])
### Ajouté
-
minification des modules g1lib
...
...
@@ -68,3 +72,4 @@ et ce projet adhère au [versionnage sémantique](https://semver.org/spec/v2.0.0
[
Version 1.0.1 (Proof of Concept)
]:
https://framagit.org/1000i100/gsper/-/tree/v1.0.1
[
1000i100
]:
https://framagit.org/1000i100
"@1000i100"
[
Hugo
]:
https://trentesaux.fr/
This diff is collapsed.
Click to expand it.
npm/package.json
+
1
−
1
View file @
745df34e
{
"name"
:
"g1lib"
,
"version"
:
"3.
0.2
"
,
"version"
:
"3.
1.0
"
,
"description"
:
"An ubiquitous static javascript toolbox lib for Ǧ1 / Duniter ecosystem with reliability in mind."
,
"main"
:
"all.mjs"
,
"author"
:
{
...
...
This diff is collapsed.
Click to expand it.
src/dictionary.mjs
0 → 100644
+
23
−
0
View file @
745df34e
export
class
Dictionary
{
constructor
(
dictionaryString
)
{
this
.
properties
=
initProperties
(
dictionaryString
);
incorporate
(
this
,
this
.
properties
);
}
}
export
function
initProperties
(
dictionaryString
)
{
if
(
!
dictionaryString
)
return
{};
const
properties
=
{
length
:
81
,
extraLength
:
90
};
return
properties
;
}
export
default
Dictionary
;
function
incorporate
(
target
,
toAdd
)
{
for
(
const
key
in
toAdd
)
{
target
[
key
]
=
toAdd
[
key
];
}
}
This diff is collapsed.
Click to expand it.
src/dictionary.test.mjs
0 → 100644
+
13
−
0
View file @
745df34e
import
test
from
'
ava
'
;
import
*
as
app
from
'
./dictionary.mjs
'
;
test
(
'
get dictionary length
'
,
t
=>
{
const
dictionaryString
=
'
(a|b|c)d(e|f|g)
'
;
const
dico
=
new
app
.
Dictionary
(
dictionaryString
);
t
.
is
(
dico
.
length
,
81
);
});
test
(
'
get dictionary extraLength
'
,
t
=>
{
const
dictionaryString
=
'
(a|b|c)d(e|f|g)
'
;
const
dico
=
new
app
.
Dictionary
(
dictionaryString
);
t
.
true
(
dico
.
extraLength
>=
81
);
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment