@aneuhold/core-ts-lib 1.1.6 → 1.1.8

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/lib/index.d.ts CHANGED
@@ -1,13 +1,11 @@
1
1
  import datesAreOnSameDay from './helperFunctions/dateFunctions';
2
2
  import sleep from './helperFunctions/sleep';
3
3
  import DependencyService from './services/DependencyService';
4
- import DOFunctionService, { DOFunction } from './services/DOFunctionService/DOFunctionService';
5
- import { DOAuthCheckPasswordInput, DOAuthCheckPasswordOutput, DOAuthCheckPasswordRawOutput } from './services/DOFunctionService/functionsInfo/authCheckPassword';
6
4
  import FileSystemService from './services/FileSystemService/FileSystemService';
7
5
  import StringService from './services/StringService';
8
6
  import ErrorUtils from './utils/ErrorUtils';
9
7
  import Logger from './utils/Logger';
10
8
  import TestUtils from './utils/TestUtils';
11
- export { datesAreOnSameDay, DependencyService, DOFunctionService, FileSystemService, Logger, sleep, StringService, TestUtils, ErrorUtils };
12
- export type { DOAuthCheckPasswordInput, DOAuthCheckPasswordOutput, DOAuthCheckPasswordRawOutput, DOFunction };
9
+ export { datesAreOnSameDay, DependencyService, FileSystemService, Logger, sleep, StringService, TestUtils, ErrorUtils };
10
+ export type {};
13
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAChE,OAAO,KAAK,MAAM,yBAAyB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,8BAA8B,CAAC;AAC7D,OAAO,iBAAiB,EAAE,EACxB,UAAU,EACX,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,4BAA4B,EAC7B,MAAM,8DAA8D,CAAC;AACtE,OAAO,iBAAiB,MAAM,gDAAgD,CAAC;AAC/E,OAAO,aAAa,MAAM,0BAA0B,CAAC;AACrD,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,MAAM,MAAM,gBAAgB,CAAC;AACpC,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAG1C,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,EACN,KAAK,EACL,aAAa,EACb,SAAS,EACT,UAAU,EACX,CAAC;AAGF,YAAY,EACV,wBAAwB,EACxB,yBAAyB,EACzB,4BAA4B,EAC5B,UAAU,EACX,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAChE,OAAO,KAAK,MAAM,yBAAyB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,8BAA8B,CAAC;AAC7D,OAAO,iBAAiB,MAAM,gDAAgD,CAAC;AAC/E,OAAO,aAAa,MAAM,0BAA0B,CAAC;AACrD,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,MAAM,MAAM,gBAAgB,CAAC;AACpC,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAG1C,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,EACN,KAAK,EACL,aAAa,EACb,SAAS,EACT,UAAU,EACX,CAAC;AAGF,YAAY,EAAE,CAAC"}
package/lib/index.js CHANGED
@@ -3,15 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ErrorUtils = exports.TestUtils = exports.StringService = exports.sleep = exports.Logger = exports.FileSystemService = exports.DOFunctionService = exports.DependencyService = exports.datesAreOnSameDay = void 0;
6
+ exports.ErrorUtils = exports.TestUtils = exports.StringService = exports.sleep = exports.Logger = exports.FileSystemService = exports.DependencyService = exports.datesAreOnSameDay = void 0;
7
7
  const dateFunctions_1 = __importDefault(require("./helperFunctions/dateFunctions"));
8
8
  exports.datesAreOnSameDay = dateFunctions_1.default;
9
9
  const sleep_1 = __importDefault(require("./helperFunctions/sleep"));
10
10
  exports.sleep = sleep_1.default;
11
11
  const DependencyService_1 = __importDefault(require("./services/DependencyService"));
12
12
  exports.DependencyService = DependencyService_1.default;
13
- const DOFunctionService_1 = __importDefault(require("./services/DOFunctionService/DOFunctionService"));
14
- exports.DOFunctionService = DOFunctionService_1.default;
15
13
  const FileSystemService_1 = __importDefault(require("./services/FileSystemService/FileSystemService"));
16
14
  exports.FileSystemService = FileSystemService_1.default;
17
15
  const StringService_1 = __importDefault(require("./services/StringService"));
@@ -10,5 +10,10 @@ export default class StringService {
10
10
  * if there is no extension
11
11
  */
12
12
  static getFileNameExtension(fileName: string): string | undefined;
13
+ /**
14
+ * Strips JSON comments from the provided JSON string. Only `//` comments
15
+ * are supported at the moment.
16
+ */
17
+ static stripJsonComments: (jsonString: string) => string;
13
18
  }
14
19
  //# sourceMappingURL=StringService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StringService.d.ts","sourceRoot":"","sources":["../../src/services/StringService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC;;;;;;OAMG;IACH,MAAM,CAAC,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAGlE"}
1
+ {"version":3,"file":"StringService.d.ts","sourceRoot":"","sources":["../../src/services/StringService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC;;;;;;OAMG;IACH,MAAM,CAAC,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIjE;;;OAGG;IACH,MAAM,CAAC,iBAAiB,eAAgB,MAAM,YAG5C;CACH"}
@@ -14,5 +14,13 @@ class StringService {
14
14
  static getFileNameExtension(fileName) {
15
15
  return fileName.split('.').pop();
16
16
  }
17
+ /**
18
+ * Strips JSON comments from the provided JSON string. Only `//` comments
19
+ * are supported at the moment.
20
+ */
21
+ static stripJsonComments = (jsonString) => {
22
+ const commentRegex = /\/\/(.*)/g;
23
+ return jsonString.replace(commentRegex, '');
24
+ };
17
25
  }
18
26
  exports.default = StringService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aneuhold/core-ts-lib",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "A core library for all of my TypeScript projects",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -34,7 +34,6 @@
34
34
  "devDependencies": {
35
35
  "@types/jest": "^29.5.8",
36
36
  "@types/node": "^18.15.0",
37
- "@types/node-fetch": "^2.6.9",
38
37
  "@typescript-eslint/eslint-plugin": "^5.54.1",
39
38
  "@typescript-eslint/parser": "^5.54.1",
40
39
  "eslint": "^8.35.0",
package/readme.md CHANGED
@@ -1,3 +1,5 @@
1
1
  # core-ts-lib
2
2
 
3
+ ![npm](https://img.shields.io/npm/v/%40aneuhold%2Fcore-ts-lib)
4
+
3
5
  This is a library containing TypeScript that I am sharing among a few different projects.