dce-expresskit 5.0.5 → 5.0.6

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, spaceAtCapitals } from 'dce-commonkit';
1
+ import { abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, getMondayOfTimestamp, 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, spaceAtCapitals, 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, getMondayOfTimestamp, 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.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;
39
+ 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.getMondayOfTimestamp = 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 = exports.LogAction = 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; } });
@@ -52,6 +52,7 @@ Object.defineProperty(exports, "sum", { enumerable: true, get: function () { ret
52
52
  Object.defineProperty(exports, "waitMs", { enumerable: true, get: function () { return dce_commonkit_1.waitMs; } });
53
53
  Object.defineProperty(exports, "getOrdinal", { enumerable: true, get: function () { return dce_commonkit_1.getOrdinal; } });
54
54
  Object.defineProperty(exports, "getTimeInfoInET", { enumerable: true, get: function () { return dce_commonkit_1.getTimeInfoInET; } });
55
+ Object.defineProperty(exports, "getMondayOfTimestamp", { enumerable: true, get: function () { return dce_commonkit_1.getMondayOfTimestamp; } });
55
56
  Object.defineProperty(exports, "getTimestampFromTimeInfoInET", { enumerable: true, get: function () { return dce_commonkit_1.getTimestampFromTimeInfoInET; } });
56
57
  Object.defineProperty(exports, "startMinWait", { enumerable: true, get: function () { return dce_commonkit_1.startMinWait; } });
57
58
  Object.defineProperty(exports, "getHumanReadableDate", { enumerable: true, get: function () { return dce_commonkit_1.getHumanReadableDate; } });
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uBAAuB;AACvB,+CAgDuB;AAuBrB,2F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mB,OAuEA;AAEnB,iGAxEA,gCAAgB,OAwEA;AADhB,6FAtEA,4BAAY,OAsEA;AAEZ,gGAvEA,+BAAe,OAuEA;AACf,2FAvEA,0BAAU,OAuEA;AACV,4FAvEA,2BAAW,OAuEA;AACX,6FAvEA,4BAAY,OAuEA;AACZ,yFAvEA,wBAAQ,OAuEA;AACR,0FAvEA,yBAAS,OAuEA;AACT,2FAvEA,0BAAU,OAuEA;AACV,6FAvEA,4BAAY,OAuEA;AAYZ,0FAlFA,yBAAS,OAkFA;AAET,wFAlFA,uBAAO,OAkFA;AACP,0FAlFA,yBAAS,OAkFA;AACT,0FAlFA,yBAAS,OAkFA;AACT,mGAlFA,kCAAkB,OAkFA;AAtDlB,6FAzBA,4BAAY,OAyBA;AACZ,2FAzBA,0BAAU,OAyBA;AACV,0FAzBA,yBAAS,OAyBA;AAJT,8FApBA,6BAAa,OAoBA;AA6Db,0FAhFA,yBAAS,OAgFA;AArBT,gGA1DA,+BAAe,OA0DA;AAvDjB,iBAAiB;AACjB,oEAA8C;AAwD5C,qBAxDK,oBAAU,CAwDL;AAvDZ,8EAAwD;AAwDtD,0BAxDK,yBAAe,CAwDL;AAvDjB,sEAAgD;AAwD9C,sBAxDK,qBAAW,CAwDL;AAvDb,0EAAoD;AAwDlD,wBAxDK,uBAAa,CAwDL;AAvDf,wFAAkE;AA0DhE,+BA1DK,8BAAoB,CA0DL;AAzDtB,wGAAkF;AA0DhF,uCA1DK,sCAA4B,CA0DL;AAzD9B,+FAAkG;AAsDhG,oCAtDK,mCAAyB,CAsDL;AACzB,iGAvDkC,4CAAgB,OAuDlC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-expresskit",
3
- "version": "5.0.5",
3
+ "version": "5.0.6",
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.1"
23
+ "dce-commonkit": "^5.0.2"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "caccl": "^x.x.x",
package/src/index.ts CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  waitMs,
13
13
  getOrdinal,
14
14
  getTimeInfoInET,
15
+ getMondayOfTimestamp,
15
16
  getTimestampFromTimeInfoInET,
16
17
  startMinWait,
17
18
  getHumanReadableDate,
@@ -82,6 +83,7 @@ export {
82
83
  waitMs,
83
84
  getOrdinal,
84
85
  getTimeInfoInET,
86
+ getMondayOfTimestamp,
85
87
  getTimestampFromTimeInfoInET,
86
88
  startMinWait,
87
89
  getHumanReadableDate,