@cerema/cadriciel 1.0.8 → 1.1.0

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/cmd/init.js CHANGED
@@ -33,7 +33,7 @@ module.exports = function (program) {
33
33
 
34
34
  const download = async (name, cb) => {
35
35
  var client = await S3();
36
- client.get('cadriciel-templates', `${name}.zip`, function () {
36
+ client.get('templates', `${name}.zip`, function () {
37
37
  unzipFile(`${os.tmpdir()}/${name}.zip`, `${os.tmpdir()}/${UID}`, () => {
38
38
  DEFAULT_TEMPLATE = name;
39
39
  fs.unlink(`${os.tmpdir()}/${name}.zip`, cb);
@@ -53,6 +53,7 @@ module.exports = function (program) {
53
53
  text = text.replace(/§§project§§/g, o.project);
54
54
  text = text.replace(/§§projectUpper§§/g, o.project.toUpperCase());
55
55
  text = text.replace(/§§projectID§§/g, capitalizeFirstLetter(o.project));
56
+ text = text.replace(/§§projectNS§§/g, capitalizeFirstLetter(o.project));
56
57
  text = text.replace(/§§pg_port§§/g, o.pg_port);
57
58
  text = text.replace(/§§inbucket_port§§/g, o.inbucket_port);
58
59
  text = text.replace(/§§keycloak_port§§/g, o.keycloak_port);
package/cmd/login.js CHANGED
@@ -24,7 +24,7 @@ module.exports = function (program) {
24
24
  ])
25
25
  .then(async (answers) => {
26
26
  var client = await S3(answers);
27
- client.get('cadriciel-templates', 'template.json', function (e, r) {
27
+ client.get('templates', 'template.json', function (e, r) {
28
28
  if (e) return log.error('Votre login ou mot de passe incorrecte');
29
29
  makeAccount(JSON.stringify(answers), function (e) {
30
30
  if (e) return log.error('Impossible de créer votre compte.');
package/cmd/update.js CHANGED
@@ -7,7 +7,7 @@ module.exports = function (program) {
7
7
  console.log('- Mise à jour du cadriciel');
8
8
  /** update json */
9
9
  const s3 = await S3();
10
- s3.get('cadriciel-templates', 'template.json', function (e) {
10
+ s3.get('templates', 'template.json', function (e) {
11
11
  fs.rename(
12
12
  os.tmpdir() + '/template.json',
13
13
  os.homedir() + '/.cadriciel/template.json',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerema/cadriciel",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "npm": ">=8.0.0",