ig-types 6.9.3 → 6.9.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.
Files changed (3) hide show
  1. package/Date.js +3 -1
  2. package/README.md +3 -2
  3. package/package.json +1 -1
package/Date.js CHANGED
@@ -57,7 +57,7 @@ object.Mixin('DateMixin', 'soft', {
57
57
  str = ' '+str
58
58
  var c =
59
59
  (/[^a-z](m(illi)?(-)?s(ec(ond(s)?)?)?)$/i.test(str)
60
- || /^[0-9]*(\.[0-9]+)?$/.test(str) ) ?
60
+ || /^([0-9]*\.)?[0-9]+$/.test(str) ) ?
61
61
  1
62
62
  : /[^a-z]s(ec(ond(s)?)?)?$/i.test(str) ?
63
63
  1000
@@ -75,6 +75,8 @@ object.Mixin('DateMixin', 'soft', {
75
75
 
76
76
  isPeriod: function(str){
77
77
  return !isNaN(this.str2ms(str)) },
78
+ isDateStr: function(str){
79
+ return !isNaN(new Date(str).valueOf()) },
78
80
  })
79
81
 
80
82
 
package/README.md CHANGED
@@ -1872,8 +1872,8 @@ Add a value to the generator sequence at start/end.
1872
1872
  -> <generator>
1873
1873
  ```
1874
1874
 
1875
- Value added by `.unshift(..)` will be yielded by `<generator>` "first", i.e. on _next_ call to `.next()`, regardless of the current generator state.
1876
-
1875
+ Value added by `.unshift(..)` will be yielded by `<generator>` "first", i.e. on
1876
+ _next_ call to `.next()`, regardless of the current generator state.
1877
1877
 
1878
1878
 
1879
1879
  #### `<generator>.promise()`
@@ -2035,6 +2035,7 @@ currently which may not be the first element in the sequence.
2035
2035
  Equivalents to [`<generator>`'s `.shift(..)`/`.pop(..)`/..](#generatorshift--generatorpop--generatorgshift--generatorgpop)
2036
2036
  but returning a reusable `<func>`/`<Generator>`.
2037
2037
 
2038
+
2038
2039
  #### `<generator>.unshift(..)` / `<generator>.push(..)`
2039
2040
 
2040
2041
  ```bnf
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ig-types",
3
- "version": "6.9.3",
3
+ "version": "6.9.4",
4
4
  "description": "Generic JavaScript types and type extensions...",
5
5
  "main": "main.js",
6
6
  "scripts": {