nextbillion-mcp 0.1.7 → 0.1.9

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -5,9 +5,6 @@ var __export = (target, all) => {
5
5
  __defProp(target, name, { get: all[name], enumerable: true });
6
6
  };
7
7
 
8
- // src/index.ts
9
- import { createRequire } from "node:module";
10
-
11
8
  // ../../node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs
12
9
  var __create = Object.create;
13
10
  var __defProp2 = Object.defineProperty;
@@ -21346,7 +21343,7 @@ function extractApiMessage(bodyText) {
21346
21343
  }
21347
21344
 
21348
21345
  // src/index.ts
21349
- var pkg = createRequire(import.meta.url)("../package.json");
21346
+ var pkg = true ? { version: "0.1.9" } : createRequire(import.meta.url)("../package.json");
21350
21347
  function main() {
21351
21348
  const args = process.argv.slice(2);
21352
21349
  if (args.includes("--version") || args.includes("-v")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextbillion-mcp",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "MCP server exposing NextBillion.ai location APIs (geocoding, places, routing, maps) as tools for AI agents",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "scripts": {
31
31
  "prepublishOnly": "npm run typecheck && npm run test && npm run build",
32
- "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && esbuild src/index.ts --bundle --platform=node --format=esm --target=node20 --outfile=dist/index.js --log-level=warning && node -e \"require('fs').chmodSync('dist/index.js', 0o755)\"",
32
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && esbuild src/index.ts --bundle --platform=node --format=esm --target=node20 --outfile=dist/index.js --log-level=warning --define:__NBMCP_VERSION__=\\\"$npm_package_version\\\" && node -e \"require('fs').chmodSync('dist/index.js', 0o755)\"",
33
33
  "typecheck": "tsc -p tsconfig.json --noEmit",
34
34
  "test": "vitest run tests/unit tests/conformance",
35
35
  "test:e2e": "vitest run tests/e2e",