@stamhoofd/redirecter 2.114.1 → 2.115.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/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import backendEnv from '@stamhoofd/backend-env';
2
2
 
3
+ process.title = 'stamhoofd-redirecter';
3
4
  backendEnv.load({ service: 'redirecter' }).catch((error) => {
4
5
  console.error('Failed to load environment:', error);
5
6
  process.exit(1);
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@stamhoofd/redirecter",
3
- "version": "2.114.1",
3
+ "version": "2.115.0",
4
4
  "main": "index.ts",
5
5
  "license": "UNLICENCED",
6
6
  "scripts": {
7
- "build": "rm -rf ./dist/src/data && tsc -b && mkdir -p ./dist/src/data && cp ./src/data/* ./dist/src/data",
7
+ "dev:full": "wait-on ../../shared/middleware/dist/index.js && concurrently -r 'yarn -s build --watch --preserveWatchOutput' \"wait-on ./dist/src/data/belgium.csv && nodemon --quiet --inspect=5858 --watch dist --watch '../../../shared/*/dist/' --watch '../../shared/*/dist/' --ext .ts,.json,.sql,.js --watch .env.json --delay 1000ms --exec 'node --enable-source-maps ./dist/index.js' --signal SIGTERM\"",
8
+ "build": "rm -rf ./dist/src/migrations && rm -rf ./dist/src/seeds && yarn -s copy-assets && tsc -b",
9
+ "copy-assets": "rsync --delete --mkpath --exclude='*.ts' --exclude='*.js' -r --checksum ./src/ ./dist/src/",
8
10
  "build:full": "rm -rf ./dist && yarn build",
9
11
  "start": "yarn build && node ./dist/index.js",
10
12
  "lint": "eslint"
@@ -19,5 +21,5 @@
19
21
  "publishConfig": {
20
22
  "access": "public"
21
23
  },
22
- "gitHead": "0394c203f4133023b2a813d96554ea8b4a0a73d8"
24
+ "gitHead": "b68983abee843a6d4f4460b7818d66a8780587cc"
23
25
  }
@@ -50,7 +50,6 @@ export class Geolocator {
50
50
  const from = splitted[0];
51
51
  const to = splitted[1];
52
52
 
53
- console.log('From ', from, 'to', to);
54
53
  range.push(new IPRange(from, to, splitted[4] ?? ''));
55
54
  }
56
55
  }