tpmkms_4wp 9.1.1-beta.25 → 9.1.1-beta.26

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/common/helpers.js CHANGED
@@ -7,6 +7,13 @@ const unshiftL = (list, element, max) => {
7
7
  list.unshift(element)
8
8
  }
9
9
 
10
+ const pushL = (list, element, max) => {
11
+ if (list.length >= max) {
12
+ list.shift()
13
+ }
14
+ list.push(element)
15
+ }
16
+
10
17
  // X pm today or tomorrow
11
18
  const millisecondsUntilHourOfDay = (newDate, hour) => {
12
19
  const now = newDate()
@@ -215,6 +222,7 @@ const getValue = (propertyPath, object) => {
215
222
 
216
223
  module.exports = {
217
224
  unshiftL,
225
+ pushL,
218
226
  getValue,
219
227
  defaultContextCheck,
220
228
  defaultContextCheckProperties,
package/package.json CHANGED
@@ -325,8 +325,8 @@
325
325
  "scriptjs": "^2.5.9",
326
326
  "table": "^6.7.1",
327
327
  "uuid": "^9.0.0",
328
- "theprogrammablemind_4wp": "9.1.1-beta.25"
328
+ "theprogrammablemind_4wp": "9.1.1-beta.26"
329
329
  },
330
- "version": "9.1.1-beta.25",
330
+ "version": "9.1.1-beta.26",
331
331
  "license": "UNLICENSED"
332
332
  }