@ncukondo/reference-manager 0.5.1 → 0.5.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/dist/cli.js CHANGED
@@ -7,13 +7,13 @@ import { tmpdir } from "node:os";
7
7
  import * as path from "node:path";
8
8
  import { join, extname } from "node:path";
9
9
  import { mkdir, unlink, rename, copyFile, rm, readFile } from "node:fs/promises";
10
- import { u as updateReference, g as getDefaultExportFromCjs, B as BUILTIN_STYLES, a as addReferences, c as citeReferences, l as listReferences, r as removeReference, s as searchReferences, b as startServerWithFileWatcher } from "./chunks/index-9dyK2f9_.js";
10
+ import { u as updateReference, g as getDefaultExportFromCjs, B as BUILTIN_STYLES, a as addReferences, c as citeReferences, l as listReferences, r as removeReference, s as searchReferences, b as startServerWithFileWatcher } from "./chunks/index-D4Q13N-R.js";
11
11
  import process$1, { stdin, stdout } from "node:process";
12
12
  import { l as loadConfig } from "./chunks/loader-DuzyKV70.js";
13
13
  import { spawn } from "node:child_process";
14
14
  import { serve } from "@hono/node-server";
15
15
  const name = "@ncukondo/reference-manager";
16
- const version$1 = "0.5.1";
16
+ const version$1 = "0.5.2";
17
17
  const description$1 = "A local reference management tool using CSL-JSON as the single source of truth";
18
18
  const packageJson = {
19
19
  name,
@@ -21538,19 +21538,19 @@ class OperationsLibrary {
21538
21538
  }
21539
21539
  // High-level operations
21540
21540
  async search(options) {
21541
- const { searchReferences: searchReferences2 } = await import("./chunks/index-9dyK2f9_.js").then((n) => n.i);
21541
+ const { searchReferences: searchReferences2 } = await import("./chunks/index-D4Q13N-R.js").then((n) => n.i);
21542
21542
  return searchReferences2(this.library, options);
21543
21543
  }
21544
21544
  async list(options) {
21545
- const { listReferences: listReferences2 } = await import("./chunks/index-9dyK2f9_.js").then((n) => n.h);
21545
+ const { listReferences: listReferences2 } = await import("./chunks/index-D4Q13N-R.js").then((n) => n.h);
21546
21546
  return listReferences2(this.library, options ?? {});
21547
21547
  }
21548
21548
  async cite(options) {
21549
- const { citeReferences: citeReferences2 } = await import("./chunks/index-9dyK2f9_.js").then((n) => n.f);
21549
+ const { citeReferences: citeReferences2 } = await import("./chunks/index-D4Q13N-R.js").then((n) => n.f);
21550
21550
  return citeReferences2(this.library, options);
21551
21551
  }
21552
21552
  async import(inputs, options) {
21553
- const { addReferences: addReferences2 } = await import("./chunks/index-9dyK2f9_.js").then((n) => n.e);
21553
+ const { addReferences: addReferences2 } = await import("./chunks/index-D4Q13N-R.js").then((n) => n.e);
21554
21554
  return addReferences2(inputs, this.library, options ?? {});
21555
21555
  }
21556
21556
  }
@@ -1 +1 @@
1
- {"version":3,"file":"detector.d.ts","sourceRoot":"","sources":["../../../src/features/import/detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,aAAa,GAAG,SAAS,CAAC;AAqBjG;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAwBzE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAW5D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAqB5D;AAkCD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAYhF;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAW5C;AA0BD;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAO7C"}
1
+ {"version":3,"file":"detector.d.ts","sourceRoot":"","sources":["../../../src/features/import/detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,aAAa,GAAG,SAAS,CAAC;AAqBjG;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAwBzE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAW5D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAqB5D;AAkCD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAYhF;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAW5C;AA0BD;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAc7C"}
@@ -12,4 +12,17 @@
12
12
  * @returns Normalized DOI (10.xxx/xxx format)
13
13
  */
14
14
  export declare function normalizeDoi(doi: string): string;
15
+ /**
16
+ * Normalizes a PMID by removing the optional "PMID:" prefix and trimming whitespace.
17
+ *
18
+ * Supported formats:
19
+ * - "12345678" -> "12345678"
20
+ * - "PMID:12345678" -> "12345678"
21
+ * - "pmid:12345678" -> "12345678"
22
+ * - "PMID: 12345678" -> "12345678" (space after colon)
23
+ *
24
+ * @param pmid - The PMID string to normalize
25
+ * @returns The normalized PMID (digits only) or empty string if invalid
26
+ */
27
+ export declare function normalizePmid(pmid: string): string;
15
28
  //# sourceMappingURL=normalizer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalizer.d.ts","sourceRoot":"","sources":["../../../src/features/import/normalizer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAYH;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAoBhD"}
1
+ {"version":3,"file":"normalizer.d.ts","sourceRoot":"","sources":["../../../src/features/import/normalizer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAYH;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAoBhD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYlD"}
package/dist/server.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "hono";
2
2
  import "./chunks/file-watcher-Dqkw6R7-.js";
3
- import { d, b } from "./chunks/index-9dyK2f9_.js";
3
+ import { d, b } from "./chunks/index-D4Q13N-R.js";
4
4
  export {
5
5
  d as createServer,
6
6
  b as startServerWithFileWatcher
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ncukondo/reference-manager",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "A local reference management tool using CSL-JSON as the single source of truth",
5
5
  "publishConfig": {
6
6
  "access": "public"