@illuminis/comprism 0.1.1 → 0.1.2
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/out/lib/version.d.ts +1 -2
- package/out/lib/version.js +21 -2
- package/package.json +1 -1
package/out/lib/version.d.ts
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
* behavior behind them changes, never on a whim, because consumers select by
|
|
7
7
|
* version and old records keep meaning what they meant.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
export declare const COMPRISM_VERSION = "0.1.0";
|
|
9
|
+
export declare const COMPRISM_VERSION: string;
|
|
11
10
|
/** The structural classifier. Bump when a signal is added, removed or retuned. */
|
|
12
11
|
export declare const CLASSIFIER_VERSION = "structural-v1";
|
|
13
12
|
/**
|
package/out/lib/version.js
CHANGED
|
@@ -9,8 +9,27 @@
|
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.ESTIMATOR_VERSION = exports.POLICY_VERSION = exports.CLASSIFIER_VERSION = exports.COMPRISM_VERSION = void 0;
|
|
12
|
-
/**
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* The package version. Stamped on every row the Companion writes.
|
|
14
|
+
*
|
|
15
|
+
* Read from the package's own manifest rather than typed here. It was typed
|
|
16
|
+
* here once, and a published 0.1.1 went on reporting itself as 0.1.0 to every
|
|
17
|
+
* customer and onto every record it wrote, which is the one number a version
|
|
18
|
+
* stamp exists to get right. A literal drifts the moment `npm version` runs;
|
|
19
|
+
* the manifest cannot.
|
|
20
|
+
*/
|
|
21
|
+
function packageVersion() {
|
|
22
|
+
try {
|
|
23
|
+
// Two levels up from out/lib, which is where the manifest sits in both the
|
|
24
|
+
// built package and a checkout.
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
26
|
+
return String(require('../../package.json').version || '0.0.0');
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
return '0.0.0';
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.COMPRISM_VERSION = packageVersion();
|
|
14
33
|
/** The structural classifier. Bump when a signal is added, removed or retuned. */
|
|
15
34
|
exports.CLASSIFIER_VERSION = 'structural-v1';
|
|
16
35
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@illuminis/comprism",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CompletionPrism Companion. Records what finishing a piece of work actually costs - every attempt, and the human time spent noticing and repairing the ones that failed.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|