git-digger 2.2.1 → 2.2.3

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/README.md CHANGED
@@ -27,9 +27,9 @@ digger current-contribution-data $(pwd) # Now it should be available via NPM's p
27
27
 
28
28
  ## Commands
29
29
 
30
- ### CurrentContributionData
30
+ ### Current Contribution Data
31
31
 
32
- The `currentContributionData` task will collect the most recent contribution to the repository.
32
+ The `current-contribution-data` command will collect the most recent contribution to the repository.
33
33
 
34
34
  The most recent contribution is calculated by looking for the most recent, non-HEAD tag, and then including every commit after that until the current HEAD.
35
35
 
@@ -41,9 +41,9 @@ It will include all fields listed [here](../digger-json/src/commonMain/kotlin/co
41
41
 
42
42
  Any "Instant" in the specification is an ISO 8601 date-time. Any Duration is an ISO 8601 duration.
43
43
 
44
- ### AllContributionData
44
+ ### All Contribution Data
45
45
 
46
- The `allContributionData` task will collect all the contributions in the git repository.
46
+ The `all-contribution-data` command will collect all the contributions in the git repository.
47
47
 
48
48
  This is calculated by subdividing the repository by its tags, and each section becomes a contribution.
49
49
 
@@ -84,7 +84,7 @@ All contributions from one repository will share the same label. By default, thi
84
84
  This can be overridden by argument:
85
85
 
86
86
  ```bash
87
- digger currentContributionData --label SomethingMoreExciting ${pwd}
87
+ digger current-contribution-data --label SomethingMoreExciting $(pwd)
88
88
  ```
89
89
 
90
90
  ### Ease
@@ -65,7 +65,7 @@
65
65
  initMetadataForClass(OutputFormat, 'OutputFormat', VOID, Enum);
66
66
  //endregion
67
67
  function Versions() {
68
- this.a2i_1 = '2.2.1';
68
+ this.a2i_1 = '2.2.3';
69
69
  }
70
70
  var Versions_instance;
71
71
  function Versions_getInstance() {
@@ -53,6 +53,12 @@ if (typeof Math.log2 === 'undefined') {
53
53
  return Math.log(x) * Math.LOG2E;
54
54
  };
55
55
  }
56
+ if (typeof String.prototype.startsWith === 'undefined') {
57
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
58
+ position = position || 0;
59
+ return this.lastIndexOf(searchString, position) === position;
60
+ }});
61
+ }
56
62
  if (typeof String.prototype.endsWith === 'undefined') {
57
63
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
58
64
  var subjectString = this.toString();
@@ -64,12 +70,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
64
70
  return lastIndex !== -1 && lastIndex === position;
65
71
  }});
66
72
  }
67
- if (typeof String.prototype.startsWith === 'undefined') {
68
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
69
- position = position || 0;
70
- return this.lastIndexOf(searchString, position) === position;
71
- }});
72
- }
73
73
  //endregion
74
74
  (function (_) {
75
75
  'use strict';