@replit/protocol 0.3.58 → 0.3.60

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/main/index.d.ts CHANGED
@@ -13361,8 +13361,8 @@ export namespace replit {
13361
13361
  /** Exec splitLogs */
13362
13362
  splitLogs?: (boolean|null);
13363
13363
 
13364
- /** Exec waitForEnv */
13365
- waitForEnv?: (boolean|null);
13364
+ /** Exec noUserEnv */
13365
+ noUserEnv?: (boolean|null);
13366
13366
  }
13367
13367
 
13368
13368
  /** Represents an Exec. */
@@ -13392,8 +13392,8 @@ export namespace replit {
13392
13392
  /** Exec splitLogs. */
13393
13393
  public splitLogs: boolean;
13394
13394
 
13395
- /** Exec waitForEnv. */
13396
- public waitForEnv: boolean;
13395
+ /** Exec noUserEnv. */
13396
+ public noUserEnv: boolean;
13397
13397
 
13398
13398
  /**
13399
13399
  * Creates a new Exec instance using the specified properties.
@@ -22639,6 +22639,9 @@ export namespace replit {
22639
22639
 
22640
22640
  /** NixModuleOption integerType */
22641
22641
  integerType?: (replit.goval.api.NixModuleIntegerType|replit.goval.api.INixModuleIntegerType|null);
22642
+
22643
+ /** NixModuleOption required */
22644
+ required?: (boolean|null);
22642
22645
  }
22643
22646
 
22644
22647
  /** Represents a NixModuleOption. */
@@ -22671,6 +22674,9 @@ export namespace replit {
22671
22674
  /** NixModuleOption integerType. */
22672
22675
  public integerType?: (replit.goval.api.NixModuleIntegerType|null);
22673
22676
 
22677
+ /** NixModuleOption required. */
22678
+ public required: boolean;
22679
+
22674
22680
  /** NixModuleOption type. */
22675
22681
  public type?: ("booleanType"|"stringType"|"choiceStringType"|"stringListType"|"integerType");
22676
22682
 
package/main/index.js CHANGED
@@ -34932,7 +34932,7 @@
34932
34932
  * @property {replit.goval.api.Exec.Lifecycle|null} [lifecycle] Exec lifecycle
34933
34933
  * @property {boolean|null} [splitStderr] Exec splitStderr
34934
34934
  * @property {boolean|null} [splitLogs] Exec splitLogs
34935
- * @property {boolean|null} [waitForEnv] Exec waitForEnv
34935
+ * @property {boolean|null} [noUserEnv] Exec noUserEnv
34936
34936
  */
34937
34937
 
34938
34938
  /**
@@ -35000,12 +35000,12 @@
35000
35000
  Exec.prototype.splitLogs = false;
35001
35001
 
35002
35002
  /**
35003
- * Exec waitForEnv.
35004
- * @member {boolean} waitForEnv
35003
+ * Exec noUserEnv.
35004
+ * @member {boolean} noUserEnv
35005
35005
  * @memberof replit.goval.api.Exec
35006
35006
  * @instance
35007
35007
  */
35008
- Exec.prototype.waitForEnv = false;
35008
+ Exec.prototype.noUserEnv = false;
35009
35009
 
35010
35010
  /**
35011
35011
  * Creates a new Exec instance using the specified properties.
@@ -35045,8 +35045,8 @@
35045
35045
  writer.uint32(/* id 5, wireType 0 =*/40).bool(message.splitLogs);
35046
35046
  if (message.lifecycle != null && Object.hasOwnProperty.call(message, "lifecycle"))
35047
35047
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.lifecycle);
35048
- if (message.waitForEnv != null && Object.hasOwnProperty.call(message, "waitForEnv"))
35049
- writer.uint32(/* id 7, wireType 0 =*/56).bool(message.waitForEnv);
35048
+ if (message.noUserEnv != null && Object.hasOwnProperty.call(message, "noUserEnv"))
35049
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.noUserEnv);
35050
35050
  return writer;
35051
35051
  };
35052
35052
 
@@ -35127,7 +35127,7 @@
35127
35127
  break;
35128
35128
  }
35129
35129
  case 7: {
35130
- message.waitForEnv = reader.bool();
35130
+ message.noUserEnv = reader.bool();
35131
35131
  break;
35132
35132
  }
35133
35133
  default:
@@ -35198,9 +35198,9 @@
35198
35198
  if (message.splitLogs != null && message.hasOwnProperty("splitLogs"))
35199
35199
  if (typeof message.splitLogs !== "boolean")
35200
35200
  return "splitLogs: boolean expected";
35201
- if (message.waitForEnv != null && message.hasOwnProperty("waitForEnv"))
35202
- if (typeof message.waitForEnv !== "boolean")
35203
- return "waitForEnv: boolean expected";
35201
+ if (message.noUserEnv != null && message.hasOwnProperty("noUserEnv"))
35202
+ if (typeof message.noUserEnv !== "boolean")
35203
+ return "noUserEnv: boolean expected";
35204
35204
  return null;
35205
35205
  };
35206
35206
 
@@ -35256,8 +35256,8 @@
35256
35256
  message.splitStderr = Boolean(object.splitStderr);
35257
35257
  if (object.splitLogs != null)
35258
35258
  message.splitLogs = Boolean(object.splitLogs);
35259
- if (object.waitForEnv != null)
35260
- message.waitForEnv = Boolean(object.waitForEnv);
35259
+ if (object.noUserEnv != null)
35260
+ message.noUserEnv = Boolean(object.noUserEnv);
35261
35261
  return message;
35262
35262
  };
35263
35263
 
@@ -35283,7 +35283,7 @@
35283
35283
  object.splitStderr = false;
35284
35284
  object.splitLogs = false;
35285
35285
  object.lifecycle = options.enums === String ? "NON_BLOCKING" : 0;
35286
- object.waitForEnv = false;
35286
+ object.noUserEnv = false;
35287
35287
  }
35288
35288
  if (message.args && message.args.length) {
35289
35289
  object.args = [];
@@ -35304,8 +35304,8 @@
35304
35304
  object.splitLogs = message.splitLogs;
35305
35305
  if (message.lifecycle != null && message.hasOwnProperty("lifecycle"))
35306
35306
  object.lifecycle = options.enums === String ? $root.replit.goval.api.Exec.Lifecycle[message.lifecycle] === undefined ? message.lifecycle : $root.replit.goval.api.Exec.Lifecycle[message.lifecycle] : message.lifecycle;
35307
- if (message.waitForEnv != null && message.hasOwnProperty("waitForEnv"))
35308
- object.waitForEnv = message.waitForEnv;
35307
+ if (message.noUserEnv != null && message.hasOwnProperty("noUserEnv"))
35308
+ object.noUserEnv = message.noUserEnv;
35309
35309
  return object;
35310
35310
  };
35311
35311
 
@@ -57609,6 +57609,7 @@
57609
57609
  * @property {replit.goval.api.NixModuleChoiceStringType|replit.goval.api.INixModuleChoiceStringType|null} [choiceStringType] NixModuleOption choiceStringType
57610
57610
  * @property {replit.goval.api.NixModuleStringListType|replit.goval.api.INixModuleStringListType|null} [stringListType] NixModuleOption stringListType
57611
57611
  * @property {replit.goval.api.NixModuleIntegerType|replit.goval.api.INixModuleIntegerType|null} [integerType] NixModuleOption integerType
57612
+ * @property {boolean|null} [required] NixModuleOption required
57612
57613
  */
57613
57614
 
57614
57615
  /**
@@ -57681,6 +57682,14 @@
57681
57682
  */
57682
57683
  NixModuleOption.prototype.integerType = null;
57683
57684
 
57685
+ /**
57686
+ * NixModuleOption required.
57687
+ * @member {boolean} required
57688
+ * @memberof replit.goval.api.NixModuleOption
57689
+ * @instance
57690
+ */
57691
+ NixModuleOption.prototype.required = false;
57692
+
57684
57693
  // OneOf field names bound to virtual getters and setters
57685
57694
  var $oneOfFields;
57686
57695
 
@@ -57733,6 +57742,8 @@
57733
57742
  $root.replit.goval.api.NixModuleStringListType.encode(message.stringListType, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
57734
57743
  if (message.integerType != null && Object.hasOwnProperty.call(message, "integerType"))
57735
57744
  $root.replit.goval.api.NixModuleIntegerType.encode(message.integerType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
57745
+ if (message.required != null && Object.hasOwnProperty.call(message, "required"))
57746
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.required);
57736
57747
  return writer;
57737
57748
  };
57738
57749
 
@@ -57795,6 +57806,10 @@
57795
57806
  message.integerType = $root.replit.goval.api.NixModuleIntegerType.decode(reader, reader.uint32());
57796
57807
  break;
57797
57808
  }
57809
+ case 8: {
57810
+ message.required = reader.bool();
57811
+ break;
57812
+ }
57798
57813
  default:
57799
57814
  reader.skipType(tag & 7);
57800
57815
  break;
@@ -57885,6 +57900,9 @@
57885
57900
  return "integerType." + error;
57886
57901
  }
57887
57902
  }
57903
+ if (message.required != null && message.hasOwnProperty("required"))
57904
+ if (typeof message.required !== "boolean")
57905
+ return "required: boolean expected";
57888
57906
  return null;
57889
57907
  };
57890
57908
 
@@ -57929,6 +57947,8 @@
57929
57947
  throw TypeError(".replit.goval.api.NixModuleOption.integerType: object expected");
57930
57948
  message.integerType = $root.replit.goval.api.NixModuleIntegerType.fromObject(object.integerType);
57931
57949
  }
57950
+ if (object.required != null)
57951
+ message.required = Boolean(object.required);
57932
57952
  return message;
57933
57953
  };
57934
57954
 
@@ -57948,6 +57968,7 @@
57948
57968
  if (options.defaults) {
57949
57969
  object.name = "";
57950
57970
  object.description = "";
57971
+ object.required = false;
57951
57972
  }
57952
57973
  if (message.name != null && message.hasOwnProperty("name"))
57953
57974
  object.name = message.name;
@@ -57978,6 +57999,8 @@
57978
57999
  if (options.oneofs)
57979
58000
  object.type = "integerType";
57980
58001
  }
58002
+ if (message.required != null && message.hasOwnProperty("required"))
58003
+ object.required = message.required;
57981
58004
  return object;
57982
58005
  };
57983
58006
 
package/package.json CHANGED
@@ -1,11 +1,9 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.58",
3
+ "version": "0.3.60",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
- "repository": "https://github.com/replit/protocol",
7
- "author": "faris@repl.it",
8
- "license": "MIT",
6
+ "author": "eng@replit.com",
9
7
  "scripts": {
10
8
  "prepublishOnly": "npm run build",
11
9
  "build": "npm run build:main && npm run build:iotester",