tabletcommand-location 2.0.3 → 2.0.5

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="mongoose/types/types" />
2
1
  /// <reference types="mongoose/types/aggregate" />
3
2
  /// <reference types="mongoose/types/callback" />
4
3
  /// <reference types="mongoose/types/collection" />
@@ -1 +1 @@
1
- {"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../src/location.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EACL,UAAU,EAEV,UAAU,EAEX,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,eAAe,EAEhB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW;2CAsGW,MAAM,EAAE,QAAQ,eAAe,cAAc,QAAQ,UAAU,CAAC,UAAU,IAAI;;;+BAqB1F,QAAQ,UAAU,CAAC,SAAS,eAAe,EAAE,UAAU,IAAI;EAoCpG;AAED,eAAe,QAAQ,CAAC;AACxB,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../src/location.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EACL,UAAU,EAEV,UAAU,EAEX,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,eAAe,EAEhB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW;2CAsGW,MAAM,EAAE,QAAQ,eAAe,cAAc,QAAQ,UAAU,CAAC,UAAU,IAAI;;;+BAqB1F,QAAQ,UAAU,CAAC,SAAS,eAAe,EAAE,UAAU,IAAI;EAoCpG;AAED,eAAe,QAAQ,CAAC;AACxB,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC"}
@@ -1,5 +1,3 @@
1
- /// <reference types="mongoose/types/types" />
2
- /// <reference types="mongoose/types/document" />
3
1
  /// <reference types="mongoose/types/aggregate" />
4
2
  /// <reference types="mongoose/types/callback" />
5
3
  /// <reference types="mongoose/types/collection" />
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EACL,eAAe,EACf,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACX,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAkB,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1D,wBAAgB,KAAK,CACnB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe;uBAIA,eAAe,gBAAgB,MAAM;;;0BAQlC,QAAQ,UAAU,CAAC,gBAAgB,MAAM;;;2BAaxC,QAAQ,QAAQ,CAAC,UAAU,IAAI;EAkGpE;AACD,eAAe,KAAK,CAAC;AACrB,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EACL,eAAe,EACf,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACX,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAkB,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1D,wBAAgB,KAAK,CACnB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe;uBAIA,eAAe,gBAAgB,MAAM;;;0BAQlC,QAAQ,UAAU,CAAC,gBAAgB,MAAM;;;2BAaxC,QAAQ,QAAQ,CAAC,UAAU,IAAI;EAkGpE;AACD,eAAe,KAAK,CAAC;AACrB,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC"}
@@ -1,6 +1,3 @@
1
- /// <reference types="mongoose/types/document" />
2
- /// <reference types="mongoose/types/types" />
3
- /// <reference types="mongoose/types/models" />
4
1
  import * as mongoose from "mongoose";
5
2
  import "mocha";
6
3
  import { BackendModels, Agency, Department } from "tabletcommand-backend-models";
@@ -91,9 +88,15 @@ export default function (modelsModule: typeof import("tabletcommand-backend-mode
91
88
  IncidentEvent: mongoose.Model<import("tabletcommand-backend-models").IncidentEvent, {}, {}, {}, mongoose.Document<unknown, {}, import("tabletcommand-backend-models").IncidentEvent> & import("tabletcommand-backend-models").IncidentEvent & Required<{
92
89
  _id: mongoose.Types.ObjectId;
93
90
  }>, any>;
91
+ IncidentFilter: mongoose.Model<import("tabletcommand-backend-models").IncidentFilter, {}, {}, {}, mongoose.Document<unknown, {}, import("tabletcommand-backend-models").IncidentFilter> & import("tabletcommand-backend-models").IncidentFilter & Required<{
92
+ _id: mongoose.Types.ObjectId;
93
+ }>, any>;
94
94
  IncidentNotified: mongoose.Model<import("tabletcommand-backend-models").IncidentNotified, {}, {}, {}, mongoose.Document<unknown, {}, import("tabletcommand-backend-models").IncidentNotified> & import("tabletcommand-backend-models").IncidentNotified & Required<{
95
95
  _id: mongoose.Types.ObjectId;
96
96
  }>, any>;
97
+ IncidentShareCode: mongoose.Model<import("tabletcommand-backend-models").IncidentShareCode, {}, {}, {}, mongoose.Document<unknown, {}, import("tabletcommand-backend-models").IncidentShareCode> & import("tabletcommand-backend-models").IncidentShareCode & Required<{
98
+ _id: mongoose.Types.ObjectId;
99
+ }>, any>;
97
100
  IncidentTakeover: mongoose.Model<import("tabletcommand-backend-models").IncidentTakeover, {}, {}, {}, mongoose.Document<unknown, {}, import("tabletcommand-backend-models").IncidentTakeover> & import("tabletcommand-backend-models").IncidentTakeover & Required<{
98
101
  _id: mongoose.Types.ObjectId;
99
102
  }>, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/test/mock.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,OAAO,CAAC;AACf,OAAO,EACL,aAAa,EACb,MAAM,EACN,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,OAAO,WAAU,YAAY,EAAE,cAAc,8BAA8B,CAAC;;;0BAkE9C,aAAa;4BAQX,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoD5B,aAAa;yBAIT,eAAe;EAgB1C"}
1
+ {"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/test/mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,OAAO,CAAC;AACf,OAAO,EACL,aAAa,EACb,MAAM,EACN,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,OAAO,WAAU,YAAY,EAAE,cAAc,8BAA8B,CAAC;;;0BAkE9C,aAAa;4BAQX,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoD5B,aAAa;yBAIT,eAAe;EAgB1C"}
@@ -0,0 +1,62 @@
1
+ import { defineConfig, globalIgnores } from "eslint/config";
2
+ import typescriptEslint from "@typescript-eslint/eslint-plugin";
3
+ import promise from "eslint-plugin-promise";
4
+ import security from "eslint-plugin-security";
5
+ import globals from "globals";
6
+ import tsParser from "@typescript-eslint/parser";
7
+ import path from "node:path";
8
+ import { fileURLToPath } from "node:url";
9
+ import js from "@eslint/js";
10
+ import { FlatCompat } from "@eslint/eslintrc";
11
+
12
+ const __filename = fileURLToPath(import.meta.url);
13
+ const __dirname = path.dirname(__filename);
14
+ const compat = new FlatCompat({
15
+ baseDirectory: __dirname,
16
+ recommendedConfig: js.configs.recommended,
17
+ allConfig: js.configs.all
18
+ });
19
+
20
+ export default defineConfig([globalIgnores(["**/.eslintrc.js", "**/gulpfile.js"]), {
21
+ extends: compat.extends(
22
+ "eslint:recommended",
23
+ "plugin:@typescript-eslint/recommended",
24
+ "plugin:@typescript-eslint/recommended-requiring-type-checking",
25
+ "plugin:security/recommended-legacy",
26
+ ),
27
+
28
+ plugins: {
29
+ "@typescript-eslint": typescriptEslint,
30
+ promise,
31
+ security,
32
+ },
33
+
34
+ languageOptions: {
35
+ globals: {
36
+ ...globals.node,
37
+ ...globals.mocha,
38
+ },
39
+
40
+ parser: tsParser,
41
+ ecmaVersion: 5,
42
+ sourceType: "commonjs",
43
+
44
+ parserOptions: {
45
+ project: "./src/tsconfig.json",
46
+ },
47
+ },
48
+
49
+ rules: {
50
+ quotes: [2, "double"],
51
+ semi: [2, "always"],
52
+ "space-before-function-paren": [0],
53
+ "@typescript-eslint/explicit-module-boundary-types": 0,
54
+ "@typescript-eslint/no-empty-interface": 0,
55
+ "@typescript-eslint/require-await": 0,
56
+ "@typescript-eslint/restrict-template-expressions": 0,
57
+
58
+ "@typescript-eslint/no-misused-promises": ["error", {
59
+ checksVoidReturn: false,
60
+ }],
61
+ },
62
+ }]);
package/gulpfile.js CHANGED
@@ -1,18 +1,16 @@
1
1
  const gulp = require("gulp");
2
- const shell = require("gulp-shell");
3
- const del = require("del");
2
+ const exec = require("gulp-execa");
3
+ const { deleteAsync } = require("del");
4
4
 
5
5
  gulp.task("clean", function() {
6
- return del("build/**", {
6
+ return deleteAsync(["build/**", "!build"], {
7
7
  force: true
8
8
  });
9
9
  });
10
10
 
11
- gulp.task("ts", gulp.series("clean", shell.task("tsc -p ./src")));
11
+ gulp.task("ts", gulp.series("clean", exec.task("tsc -p ./src")));
12
12
 
13
- gulp.task("lint", gulp.series(shell.task("eslint ./src")));
14
-
15
- gulp.task("watch", gulp.series("clean", shell.task("tsc -p ./src --watch")));
13
+ gulp.task("lint", gulp.series(exec.task("eslint ./src")));
16
14
 
17
15
  gulp.task("build", gulp.series("ts"));
18
16
 
package/package.json CHANGED
@@ -1,40 +1,43 @@
1
1
  {
2
2
  "name": "tabletcommand-location",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Tablet Command Location",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
7
7
  "build": "gulp build",
8
8
  "lint": "eslint src",
9
- "test": "npx type-coverage && npx mocha -r ts-node/register --reporter list --recursive src/test/**/*.ts"
9
+ "test": "npx type-coverage && npx mocha -r ts-node/register --reporter list --extension ts --recursive src/test"
10
10
  },
11
11
  "author": "Joe Goeman <joe@tabletcommand.com>",
12
12
  "license": "MIT",
13
13
  "types": "definitions/index.d.ts",
14
14
  "dependencies": {
15
- "debug": "^4.3.7",
15
+ "debug": "^4.4.0",
16
16
  "lodash": "~4.17.21",
17
- "tabletcommand-backend-models": "~7.2.12"
17
+ "tabletcommand-backend-models": "~7.3.34"
18
18
  },
19
19
  "devDependencies": {
20
- "@types/chai": "^4.3.19",
20
+ "@eslint/eslintrc": "^3.3.1",
21
+ "@eslint/js": "^9.24.0",
22
+ "@types/chai": "^5.2.1",
21
23
  "@types/debug": "^4.1.12",
22
24
  "@types/express": "^4.17.21",
23
- "@types/lodash": "^4.14.202",
25
+ "@types/lodash": "^4.17.16",
24
26
  "@types/mocha": "^10.0.10",
25
- "@types/node": "^22.10.1",
26
- "@typescript-eslint/eslint-plugin": "^6.21.0",
27
- "@typescript-eslint/parser": "^6.21.0",
28
- "chai": "^4.5.0",
29
- "cspell": "^7.3.9",
30
- "del": "^6.1.1",
31
- "eslint": "^8.56.0",
27
+ "@types/node": "^22.14.0",
28
+ "@typescript-eslint/eslint-plugin": "^8.29.1",
29
+ "@typescript-eslint/parser": "^8.29.1",
30
+ "chai": "^5.2.0",
31
+ "cspell": "^8.18.1",
32
+ "del": "^8.0.0",
33
+ "eslint": "^9.24.0",
32
34
  "eslint-plugin-node": "^11.1.0",
33
- "eslint-plugin-promise": "^6.2.0",
34
- "eslint-plugin-security": "^2.1.0",
35
- "gulp": "^4.0.2",
36
- "gulp-shell": "^0.8.0",
37
- "mocha": "^10.7.3",
35
+ "eslint-plugin-promise": "^7.2.1",
36
+ "eslint-plugin-security": "^3.0.1",
37
+ "globals": "^16.0.0",
38
+ "gulp": "^5.0.0",
39
+ "gulp-execa": "^8.0.1",
40
+ "mocha": "^11.1.0",
38
41
  "ts-node": "^10.9.2",
39
42
  "type-coverage": "^2.29.7",
40
43
  "typescript": "~4.9.5"
@@ -46,4 +49,4 @@
46
49
  "src/test/**/*.ts"
47
50
  ]
48
51
  }
49
- }
52
+ }
package/test.sh CHANGED
@@ -17,7 +17,7 @@ if hash brew 2>/dev/null; then
17
17
  fi
18
18
  fi
19
19
 
20
- NODE_VERSION="v20.11.1"
20
+ NODE_VERSION="v22.13.0"
21
21
 
22
22
  nvm use $NODE_VERSION || nvm install $NODE_VERSION
23
23
 
package/.eslintrc.js DELETED
@@ -1,42 +0,0 @@
1
- module.exports = {
2
- env: {
3
- es6: true,
4
- node: true,
5
- mocha: true
6
- },
7
- extends: [
8
- "eslint:recommended",
9
- "plugin:@typescript-eslint/recommended",
10
- "plugin:@typescript-eslint/recommended-requiring-type-checking",
11
- "plugin:security/recommended-legacy",
12
- ],
13
- ignorePatterns: [
14
- ".eslintrc.js",
15
- "gulpfile.js",
16
- ],
17
- plugins: [
18
- "@typescript-eslint",
19
- "promise",
20
- "security"
21
- ],
22
- parser: "@typescript-eslint/parser",
23
- parserOptions: {
24
- project: "./src/tsconfig.json",
25
- tsconfigRootDir: __dirname,
26
- },
27
- rules: {
28
- quotes: [2, "double"],
29
- semi: [2, "always"],
30
- "space-before-function-paren": [0],
31
- "@typescript-eslint/explicit-module-boundary-types": 0,
32
- "@typescript-eslint/no-empty-interface": 0,
33
- "@typescript-eslint/require-await": 0,
34
- "@typescript-eslint/restrict-template-expressions": 0,
35
- "@typescript-eslint/no-misused-promises": [
36
- "error",
37
- {
38
- "checksVoidReturn": false
39
- }
40
- ]
41
- }
42
- };