Compare View

switch
from
...
to
 
Commits (3)

Changes

Showing 4 changed files Side-by-side Diff

... ... @@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d
4 4  
5 5 Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6 6  
  7 +#### [v1.45.2](https://gitlab.kodesumber.com/komodo/komodo-sdk/compare/v1.45.1...v1.45.2)
  8 +
  9 +- Optimize git version fetcher on matrix [`f5a6f8c`](https://gitlab.kodesumber.com/komodo/komodo-sdk/commit/f5a6f8c672ebfbbdc9f88dac4c6ced76d58a4129)
  10 +- Try to fix repo url [`58ffc21`](https://gitlab.kodesumber.com/komodo/komodo-sdk/commit/58ffc21a0828a1c5a0d7f4395be3872455654906)
  11 +
7 12 #### [v1.45.1](https://gitlab.kodesumber.com/komodo/komodo-sdk/compare/v1.45.0...v1.45.1)
8 13  
  14 +> 2 March 2022
  15 +
9 16 - Change repo url [`0f06a33`](https://gitlab.kodesumber.com/komodo/komodo-sdk/commit/0f06a33c73667c6c883bea4cf538e0ea67c5d49d)
10 17  
11 18 #### [v1.45.0](https://gitlab.kodesumber.com/komodo/komodo-sdk/compare/v1.44.6...v1.45.0)
1   -"use strict";
2   -
3   -const pkginfo = require('pkginfo')(module, 'version');
4 1 const simpleGit = require('simple-git');
5   -//const macaddress = require('macaddress');
6 2 const machineid = require('node-machine-id');
7   -//const sha1 = require('sha1');
8 3  
9 4 const matrix = {
10   - //host_id: {}
11 5 machineid: machineid.machineIdSync(),
12 6 machineid_readable: null,
13 7 komodosdk_type: 'nodejs',
... ... @@ -19,25 +13,11 @@ matrix.machineid_readable = matrix.machineid.match(/.{1,4}/g).join('-');
19 13 // get active git version
20 14 simpleGit(process.cwd()).raw(
21 15 ['describe'],
22   - function(err, result) {
  16 + (err, result) => {
23 17 if (!err) {
24   - if (result) {
25   - result = result.trim();
26   - }
27   - matrix.version_active = result;
  18 + matrix.version_active = (result || '').trim() || null;
28 19 }
29   - }
30   -)
31   -
32   -/*
33   -macaddress.one(function(err, mac) {
34   - if (err) return;
35   -
36   - matrix.host_id.mac = mac;
37   -})
38   -
39   -matrix.host_id.machineid = machineid.machineIdSync();
40   -matrix.host_id_hash = sha1('KOMODO' + matrix.host_id.machineid + matrix.host_id.mac);
41   -*/
  20 + },
  21 +);
42 22  
43 23 module.exports = matrix;
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.45.1",
  3 + "version": "1.45.2",
4 4 "lockfileVersion": 2,
5 5 "requires": true,
6 6 "packages": {
7 7 "": {
8 8 "name": "komodo-sdk",
9   - "version": "1.45.1",
  9 + "version": "1.45.2",
10 10 "license": "ISC",
11 11 "dependencies": {
12 12 "array-unique": "^0.3.2",
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.45.1",
  3 + "version": "1.45.2",
4 4 "description": "SDK for Komodo",
5 5 "main": "index.js",
6 6 "scripts": {
... ... @@ -10,7 +10,7 @@
10 10 },
11 11 "repository": {
12 12 "type": "git",
13   - "url": "https://gitlab.kodesumber.com/komodo/komodo-sdk.git"
  13 + "url": "git+https://gitlab.kodesumber.com/komodo/komodo-sdk.git"
14 14 },
15 15 "keywords": [
16 16 "ppob",