dce-expresskit 5.0.3 → 5.0.4

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,4 +1,4 @@
1
- import { abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, getTimestampFromTimeInfoInET, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, extractProp, compareArraysByProp, getLocalTimeInfo, genCommaList, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, ErrorWithCode, ParamType } from 'dce-commonkit';
1
+ import { abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, getTimestampFromTimeInfoInET, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, extractProp, compareArraysByProp, getLocalTimeInfo, genCommaList, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, ErrorWithCode, ParamType, spaceAtCapitals } from 'dce-commonkit';
2
2
  import initServer from './helpers/initServer';
3
3
  import genRouteHandler from './helpers/genRouteHandler';
4
4
  import handleError from './helpers/handleError';
@@ -7,4 +7,4 @@ import addDBEditorEndpoints from './helpers/addDBEditorEndpoints';
7
7
  import visitEndpointOnAnotherServer from './helpers/visitEndpointOnAnotherServer';
8
8
  import initExpressKitCollections, { getLogCollection } from './helpers/initExpressKitCollections';
9
9
  import CrossServerCredential from './types/CrossServerCredential';
10
- export { ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, getTimestampFromTimeInfoInET, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, extractProp, compareArraysByProp, genCommaList, getLocalTimeInfo, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, initServer, genRouteHandler, handleError, handleSuccess, initExpressKitCollections, getLogCollection, addDBEditorEndpoints, visitEndpointOnAnotherServer, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, CrossServerCredential, ParamType, };
10
+ export { ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, getTimestampFromTimeInfoInET, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, extractProp, compareArraysByProp, genCommaList, getLocalTimeInfo, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, spaceAtCapitals, initServer, genRouteHandler, handleError, handleSuccess, initExpressKitCollections, getLogCollection, addDBEditorEndpoints, visitEndpointOnAnotherServer, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, CrossServerCredential, ParamType, };
package/lib/index.js CHANGED
@@ -36,8 +36,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.LogBuiltInMetadata = exports.LogAction = exports.LogSource = exports.LogType = exports.DayOfWeek = exports.visitEndpointOnAnotherServer = exports.addDBEditorEndpoints = exports.getLogCollection = exports.initExpressKitCollections = exports.handleSuccess = exports.handleError = exports.genRouteHandler = exports.initServer = exports.shuffleArray = exports.capitalize = exports.someAsync = exports.mapAsync = exports.forEachAsync = exports.filterAsync = exports.everyAsync = exports.prefixWithAOrAn = exports.getLocalTimeInfo = exports.genCommaList = exports.compareArraysByProp = exports.extractProp = exports.genCSV = exports.getMonthName = exports.parallelLimit = exports.onlyKeepLetters = exports.stringsToHumanReadableList = exports.getPartOfDay = exports.getHumanReadableDate = exports.startMinWait = exports.getTimestampFromTimeInfoInET = exports.getTimeInfoInET = exports.getOrdinal = exports.waitMs = exports.sum = exports.roundToNumDecimals = exports.padZerosLeft = exports.padDecimalZeros = exports.forceNumIntoBounds = exports.floorToNumDecimals = exports.ceilToNumDecimals = exports.avg = exports.abbreviate = exports.DAY_IN_MS = exports.HOUR_IN_MS = exports.MINUTE_IN_MS = exports.ErrorWithCode = void 0;
40
- exports.ParamType = void 0;
39
+ exports.LogAction = exports.LogSource = exports.LogType = exports.DayOfWeek = exports.visitEndpointOnAnotherServer = exports.addDBEditorEndpoints = exports.getLogCollection = exports.initExpressKitCollections = exports.handleSuccess = exports.handleError = exports.genRouteHandler = exports.initServer = exports.spaceAtCapitals = exports.shuffleArray = exports.capitalize = exports.someAsync = exports.mapAsync = exports.forEachAsync = exports.filterAsync = exports.everyAsync = exports.prefixWithAOrAn = exports.getLocalTimeInfo = exports.genCommaList = exports.compareArraysByProp = exports.extractProp = exports.genCSV = exports.getMonthName = exports.parallelLimit = exports.onlyKeepLetters = exports.stringsToHumanReadableList = exports.getPartOfDay = exports.getHumanReadableDate = exports.startMinWait = exports.getTimestampFromTimeInfoInET = exports.getTimeInfoInET = exports.getOrdinal = exports.waitMs = exports.sum = exports.roundToNumDecimals = exports.padZerosLeft = exports.padDecimalZeros = exports.forceNumIntoBounds = exports.floorToNumDecimals = exports.ceilToNumDecimals = exports.avg = exports.abbreviate = exports.DAY_IN_MS = exports.HOUR_IN_MS = exports.MINUTE_IN_MS = exports.ErrorWithCode = void 0;
40
+ exports.ParamType = exports.LogBuiltInMetadata = void 0;
41
41
  // Import dce-commonkit
42
42
  var dce_commonkit_1 = require("dce-commonkit");
43
43
  Object.defineProperty(exports, "abbreviate", { enumerable: true, get: function () { return dce_commonkit_1.abbreviate; } });
@@ -83,6 +83,7 @@ Object.defineProperty(exports, "HOUR_IN_MS", { enumerable: true, get: function (
83
83
  Object.defineProperty(exports, "DAY_IN_MS", { enumerable: true, get: function () { return dce_commonkit_1.DAY_IN_MS; } });
84
84
  Object.defineProperty(exports, "ErrorWithCode", { enumerable: true, get: function () { return dce_commonkit_1.ErrorWithCode; } });
85
85
  Object.defineProperty(exports, "ParamType", { enumerable: true, get: function () { return dce_commonkit_1.ParamType; } });
86
+ Object.defineProperty(exports, "spaceAtCapitals", { enumerable: true, get: function () { return dce_commonkit_1.spaceAtCapitals; } });
86
87
  // Import helpers
87
88
  var initServer_1 = __importDefault(require("./helpers/initServer"));
88
89
  exports.initServer = initServer_1.default;
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uBAAuB;AACvB,+CA+CuB;AAuBrB,2FArEA,0BAAU,OAqEA;AACV,oFArEA,mBAAG,OAqEA;AACH,kGArEA,iCAAiB,OAqEA;AACjB,mGArEA,kCAAkB,OAqEA;AAClB,mGArEA,kCAAkB,OAqEA;AAClB,gGArEA,+BAAe,OAqEA;AACf,6FArEA,4BAAY,OAqEA;AACZ,mGArEA,kCAAkB,OAqEA;AAClB,oFArEA,mBAAG,OAqEA;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O,OAiFA;AACP,0FAjFA,yBAAS,OAiFA;AACT,0FAjFA,yBAAS,OAiFA;AACT,mGAjFA,kCAAkB,OAiFA;AArDlB,6FAzBA,4BAAY,OAyBA;AACZ,2FAzBA,0BAAU,OAyBA;AACV,0FAzBA,yBAAS,OAyBA;AAJT,8FApBA,6BAAa,OAoBA;AA4Db,0FA/EA,yBAAS,OA+EA;AArBT,gGAzDA,+BAAe,OAyDA;AAtDjB,iBAAiB;AACjB,oEAA8C;AAuD5C,qBAvDK,oBAAU,CAuDL;AAtDZ,8EAAwD;AAuDtD,0BAvDK,yBAAe,CAuDL;AAtDjB,sEAAgD;AAuD9C,sBAvDK,qBAAW,CAuDL;AAtDb,0EAAoD;AAuDlD,wBAvDK,uBAAa,CAuDL;AAtDf,wFAAkE;AAyDhE,+BAzDK,8BAAoB,CAyDL;AAxDtB,wGAAkF;AAyDhF,uCAzDK,sCAA4B,CAyDL;AAxD9B,+FAAkG;AAqDhG,oCArDK,mCAAyB,CAqDL;AACzB,iGAtDkC,4CAAgB,OAsDlC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-expresskit",
3
- "version": "5.0.3",
3
+ "version": "5.0.4",
4
4
  "description": "Shared functions, helpers, and tools for Harvard DCE Express-based servers",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "Toolkit"
21
21
  ],
22
22
  "dependencies": {
23
- "dce-commonkit": "^5.0.0"
23
+ "dce-commonkit": "^5.0.1"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "caccl": "^x.x.x",
package/src/index.ts CHANGED
@@ -46,6 +46,7 @@ import {
46
46
  DAY_IN_MS,
47
47
  ErrorWithCode,
48
48
  ParamType,
49
+ spaceAtCapitals,
49
50
  } from 'dce-commonkit';
50
51
 
51
52
  // Import helpers
@@ -102,6 +103,7 @@ export {
102
103
  someAsync,
103
104
  capitalize,
104
105
  shuffleArray,
106
+ spaceAtCapitals,
105
107
  // Server helpers
106
108
  initServer,
107
109
  genRouteHandler,