greybel-mock-environment 1.2.1 → 1.2.3

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.
@@ -133,6 +133,8 @@ var Device = /** @class */ (function () {
133
133
  return null;
134
134
  };
135
135
  switch (port.service) {
136
+ case service_1.Service.SSH:
137
+ return get('ssh.so', file_system_1.FileType.SSH);
136
138
  case service_1.Service.FTP:
137
139
  return get('ftp.so', file_system_1.FileType.FTP);
138
140
  case service_1.Service.HTTP:
@@ -125,6 +125,13 @@ var Entity = /** @class */ (function () {
125
125
  Entity.prototype.getPermissions = function (user) {
126
126
  // g is ignored for now
127
127
  // todo: add group logic
128
+ if (user.username === 'root') {
129
+ return {
130
+ r: true,
131
+ w: true,
132
+ x: true
133
+ };
134
+ }
128
135
  var parsedPermissions = this.parsePermissions();
129
136
  if (this.owner === user.username) {
130
137
  return parsedPermissions.u;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-mock-environment",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Mock environment",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",