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.
- package/dist/cjs/index.cjs +10 -0
- package/dist/cjs/rbt_api.cjs +10 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/rbt_api.js +6 -0
- package/package.json +1 -1
- package/src/index.js +9 -0
- package/src/rbt_api.js +12 -0
package/dist/cjs/index.cjs
CHANGED
|
@@ -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
|
package/dist/cjs/rbt_api.cjs
CHANGED
|
@@ -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']);
|
package/dist/esm/rbt_api.js
CHANGED
|
@@ -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
package/src/index.js
CHANGED