roboto-js 1.5.1 → 1.5.2

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.
@@ -78,6 +78,16 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
78
78
  Roboto.instance = this;
79
79
  }
80
80
  _createClass(Roboto, [{
81
+ key: "setSiteEnv",
82
+ value: function setSiteEnv(siteEnv) {
83
+ this.api.setSiteEnv(siteEnv);
84
+ }
85
+ }, {
86
+ key: "getSiteEnv",
87
+ value: function getSiteEnv() {
88
+ return this.api.getSiteEnv();
89
+ }
90
+ }, {
81
91
  key: "setAppServiceHost",
82
92
  value: function setAppServiceHost(host) {
83
93
  // DEVELOPMENT
@@ -132,6 +132,16 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
132
132
  this.appServiceHost = host;
133
133
  this.axios.defaults.baseURL = host;
134
134
  }
135
+ }, {
136
+ key: "setSiteEnv",
137
+ value: function setSiteEnv(siteEnv) {
138
+ this.siteEnv = siteEnv;
139
+ }
140
+ }, {
141
+ key: "getSiteEnv",
142
+ value: function getSiteEnv() {
143
+ return this.siteEnv;
144
+ }
135
145
  }, {
136
146
  key: "registerTypedefs",
137
147
  value: function () {
package/dist/esm/index.js CHANGED
@@ -46,6 +46,12 @@ export default class Roboto {
46
46
  }
47
47
  Roboto.instance = this;
48
48
  }
49
+ setSiteEnv(siteEnv) {
50
+ this.api.setSiteEnv(siteEnv);
51
+ }
52
+ getSiteEnv() {
53
+ return this.api.getSiteEnv();
54
+ }
49
55
  setAppServiceHost(host) {
50
56
  // DEVELOPMENT
51
57
  host = this._stripHttpsForDomains(host, ['localhost']);
@@ -61,6 +61,12 @@ export default class RbtApi {
61
61
  this.appServiceHost = host;
62
62
  this.axios.defaults.baseURL = host;
63
63
  }
64
+ setSiteEnv(siteEnv) {
65
+ this.siteEnv = siteEnv;
66
+ }
67
+ getSiteEnv() {
68
+ return this.siteEnv;
69
+ }
64
70
  async registerTypedefs(typedefs) {
65
71
  try {
66
72
  const response = await this.axios.post('/api/doctree/registerTypedefs', [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roboto-js",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.cjs",
package/src/index.js CHANGED
@@ -54,6 +54,15 @@ export default class Roboto{
54
54
 
55
55
  }
56
56
 
57
+ setSiteEnv(siteEnv){
58
+ this.api.setSiteEnv(siteEnv);
59
+ }
60
+
61
+
62
+ getSiteEnv(){
63
+ return this.api.getSiteEnv();
64
+ }
65
+
57
66
  setAppServiceHost(host){
58
67
 
59
68
  // DEVELOPMENT
package/src/rbt_api.js CHANGED
@@ -70,6 +70,18 @@ export default class RbtApi {
70
70
 
71
71
  }
72
72
 
73
+ setSiteEnv(siteEnv){
74
+
75
+ this.siteEnv = siteEnv;
76
+
77
+ }
78
+
79
+ getSiteEnv(){
80
+
81
+ return this.siteEnv;
82
+
83
+ }
84
+
73
85
 
74
86
  async registerTypedefs(typedefs){
75
87