footnote-data 0.4.0 → 0.4.1
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/footnote.mjs +6 -1
- package/package.json +2 -2
package/footnote.mjs
CHANGED
|
@@ -6,7 +6,12 @@
|
|
|
6
6
|
* params, read from the source, never guessed.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import { createRequire } from "node:module";
|
|
10
|
+
|
|
11
|
+
// The ONE source of truth for the version is package.json — a hand-typed constant here shipped
|
|
12
|
+
// "0.2.0" inside footnote-data@0.4.0 (found by a cold install smoke right after publishing), and
|
|
13
|
+
// the test that "checked" it compared the constant with itself.
|
|
14
|
+
export const VERSION = createRequire(import.meta.url)("./package.json").version;
|
|
10
15
|
export const DEFAULT_API_URL = "https://usefootnote.com";
|
|
11
16
|
|
|
12
17
|
const UPGRADE_URL = "https://usefootnote.com/data";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "footnote-data",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "The official Footnote CLI
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"description": "The official Footnote CLI — career intelligence from the public record: WARN layoffs, H-1B & green-card sponsorship, H-2 seasonal labor, PERM, OPT, DOL debarment, certified wages, and federal enforcement, straight from usefootnote.com's Data API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layoffs",
|
|
7
7
|
"warn-act",
|