greybel-mock-environment 2.4.10 → 2.4.12

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.
@@ -126,7 +126,7 @@ var Permissions = /** @class */ (function () {
126
126
  };
127
127
  Permissions.prototype.chmod = function (str) {
128
128
  var e_1, _a;
129
- if (!/^[ugo][-+][rwx]{3}$/.test(str)) {
129
+ if (!/^[ugo][-+][rwx]{1,3}$/.test(str)) {
130
130
  return false;
131
131
  }
132
132
  var _b = __read(str), type = _b[0], operator = _b[1], flags = _b.slice(2);
@@ -37,10 +37,10 @@ var Version = /** @class */ (function () {
37
37
  if (options === void 0) { options = {}; }
38
38
  this.version = options.version
39
39
  ? Version.parse(options.version)
40
- : [1, 0, 0, 0];
40
+ : [1, 0, 0];
41
41
  }
42
42
  Version.parse = function (version) {
43
- if (/^([0-9]+\.){3}[0-9]+$/.test(version)) {
43
+ if (/^([0-9]+\.){2}[0-9]+$/.test(version)) {
44
44
  return version.split('.').map(function (n) { return Number(n); });
45
45
  }
46
46
  return null;
@@ -76,7 +76,7 @@ var Version = /** @class */ (function () {
76
76
  };
77
77
  Version.prototype.major = function () {
78
78
  var _a = __read(this.version, 1), majorVersion = _a[0];
79
- this.version = [majorVersion, 0, 0, 0];
79
+ this.version = [majorVersion, 0, 0];
80
80
  return this;
81
81
  };
82
82
  Version.prototype.toString = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-mock-environment",
3
- "version": "2.4.10",
3
+ "version": "2.4.12",
4
4
  "description": "Mock environment",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@types/random-seed": "^0.3.3",
50
50
  "blueimp-md5": "^2.19.0",
51
- "greyscript-core": "~1.5.9",
51
+ "greyscript-core": "~1.5.10",
52
52
  "random-seed": "^0.3.0",
53
53
  "random-username-generator": "^1.0.4"
54
54
  }