pragmastat 11.0.0 → 11.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/README.md CHANGED
@@ -3,10 +3,10 @@
3
3
  Install from npm:
4
4
 
5
5
  ```bash
6
- npm i pragmastat@11.0.0
6
+ npm i pragmastat@11.1.0
7
7
  ```
8
8
 
9
- Source code: https://github.com/AndreyAkinshin/pragmastat/tree/v11.0.0/ts
9
+ Source code: https://github.com/AndreyAkinshin/pragmastat/tree/v11.1.0/ts
10
10
 
11
11
  Pragmastat on npm: https://www.npmjs.com/package/pragmastat
12
12
 
@@ -5,6 +5,6 @@ import { MeasurementUnit } from './measurement-unit';
5
5
  export declare class Measurement {
6
6
  readonly value: number;
7
7
  readonly unit: MeasurementUnit;
8
- constructor(value: number, unit: MeasurementUnit);
8
+ constructor(value: number, unit?: MeasurementUnit);
9
9
  }
10
10
  //# sourceMappingURL=measurement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"measurement.d.ts","sourceRoot":"","sources":["../src/measurement.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,WAAW;IAEpB,QAAQ,CAAC,KAAK,EAAE,MAAM;IACtB,QAAQ,CAAC,IAAI,EAAE,eAAe;gBADrB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,eAAe;CAEjC"}
1
+ {"version":3,"file":"measurement.d.ts","sourceRoot":"","sources":["../src/measurement.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAAa,WAAW;IAEpB,QAAQ,CAAC,KAAK,EAAE,MAAM;IACtB,QAAQ,CAAC,IAAI,EAAE,eAAe;gBADrB,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,eAAwC;CAE1D"}
@@ -4,8 +4,9 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Measurement = void 0;
7
+ const measurement_unit_1 = require("./measurement-unit");
7
8
  class Measurement {
8
- constructor(value, unit) {
9
+ constructor(value, unit = measurement_unit_1.MeasurementUnit.NUMBER) {
9
10
  this.value = value;
10
11
  this.unit = unit;
11
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"measurement.js","sourceRoot":"","sources":["../src/measurement.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIH,MAAa,WAAW;IACtB,YACW,KAAa,EACb,IAAqB;QADrB,UAAK,GAAL,KAAK,CAAQ;QACb,SAAI,GAAJ,IAAI,CAAiB;IAC7B,CAAC;CACL;AALD,kCAKC"}
1
+ {"version":3,"file":"measurement.js","sourceRoot":"","sources":["../src/measurement.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,yDAAqD;AAErD,MAAa,WAAW;IACtB,YACW,KAAa,EACb,OAAwB,kCAAe,CAAC,MAAM;QAD9C,UAAK,GAAL,KAAK,CAAQ;QACb,SAAI,GAAJ,IAAI,CAA0C;IACtD,CAAC;CACL;AALD,kCAKC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pragmastat",
3
- "version": "11.0.0",
3
+ "version": "11.1.0",
4
4
  "description": "Pragmastat: Pragmatic Statistical Toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",