roboto-js 1.4.19 → 1.4.21
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/rbt_api.cjs +1 -1
- package/dist/cjs/rbt_object.cjs +2 -2
- package/dist/esm/rbt_api.js +1 -1
- package/dist/esm/rbt_object.js +1 -1
- package/package.json +1 -1
- package/src/rbt_api.js +1 -1
- package/src/rbt_object.js +1 -1
- package/package.next.json +0 -32
package/dist/cjs/rbt_api.cjs
CHANGED
|
@@ -141,7 +141,7 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
141
141
|
case 0:
|
|
142
142
|
_context3.prev = 0;
|
|
143
143
|
_context3.next = 3;
|
|
144
|
-
return this.axios.post('/
|
|
144
|
+
return this.axios.post('/api/doctree/registerTypedefs', [{
|
|
145
145
|
typedefs: typedefs
|
|
146
146
|
}]);
|
|
147
147
|
case 3:
|
package/dist/cjs/rbt_object.cjs
CHANGED
|
@@ -137,7 +137,7 @@ var RbtObject = exports["default"] = /*#__PURE__*/function () {
|
|
|
137
137
|
key: "save",
|
|
138
138
|
value: function () {
|
|
139
139
|
var _save = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
140
|
-
var _response$data, _response$data2, record, response;
|
|
140
|
+
var _response$data, _response$data2, record, response, _e$response;
|
|
141
141
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
142
142
|
while (1) switch (_context.prev = _context.next) {
|
|
143
143
|
case 0:
|
|
@@ -178,7 +178,7 @@ var RbtObject = exports["default"] = /*#__PURE__*/function () {
|
|
|
178
178
|
case 20:
|
|
179
179
|
_context.prev = 20;
|
|
180
180
|
_context.t0 = _context["catch"](2);
|
|
181
|
-
console.log('RbtObject.save.error:', _context.t0);
|
|
181
|
+
console.log('RbtObject.save.error:', _context.t0 === null || _context.t0 === void 0 || (_e$response = _context.t0.response) === null || _e$response === void 0 ? void 0 : _e$response.data);
|
|
182
182
|
this._error = _context.t0;
|
|
183
183
|
//console.log(e.response.data);
|
|
184
184
|
throw _context.t0;
|
package/dist/esm/rbt_api.js
CHANGED
|
@@ -62,7 +62,7 @@ export default class RbtApi {
|
|
|
62
62
|
}
|
|
63
63
|
async registerTypedefs(typedefs) {
|
|
64
64
|
try {
|
|
65
|
-
const response = await this.axios.post('/
|
|
65
|
+
const response = await this.axios.post('/api/doctree/registerTypedefs', [{
|
|
66
66
|
typedefs: typedefs
|
|
67
67
|
}]);
|
|
68
68
|
return response.data;
|
package/dist/esm/rbt_object.js
CHANGED
|
@@ -121,7 +121,7 @@ export default class RbtObject {
|
|
|
121
121
|
this.rpcMeta.isNew = false;
|
|
122
122
|
return this;
|
|
123
123
|
} catch (e) {
|
|
124
|
-
console.log('RbtObject.save.error:', e);
|
|
124
|
+
console.log('RbtObject.save.error:', e?.response?.data);
|
|
125
125
|
this._error = e;
|
|
126
126
|
//console.log(e.response.data);
|
|
127
127
|
throw e;
|
package/package.json
CHANGED
package/src/rbt_api.js
CHANGED
|
@@ -74,7 +74,7 @@ export default class RbtApi {
|
|
|
74
74
|
|
|
75
75
|
try {
|
|
76
76
|
|
|
77
|
-
const response = await this.axios.post('/
|
|
77
|
+
const response = await this.axios.post('/api/doctree/registerTypedefs', [{ typedefs: typedefs }]);
|
|
78
78
|
return response.data;
|
|
79
79
|
|
|
80
80
|
} catch (e) {
|
package/src/rbt_object.js
CHANGED
package/package.next.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "roboto-js",
|
|
3
|
-
"version": "1.0.14",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"description": "",
|
|
6
|
-
"main": "dist/cjs/index.cjs",
|
|
7
|
-
"exports": {
|
|
8
|
-
"import": "./dist/esm/index.js",
|
|
9
|
-
"require": "./dist/cjs/index.cjs"
|
|
10
|
-
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "npm run build:cjs && npm run build:esm",
|
|
13
|
-
"build:cjs": "babel src --out-dir dist/cjs --presets=@babel/preset-env --extensions \".js,.jsx\" --out-file-extension .cjs && npm run postbuild:cjs",
|
|
14
|
-
"build:esm": "babel src --out-dir dist/esm --presets=@babel/preset-env --no-babelrc --config-file ./babel.esm.config.json",
|
|
15
|
-
"postbuild:cjs": "node postbuild-cjs.js",
|
|
16
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
17
|
-
"prepublishOnly": "npm run build"
|
|
18
|
-
},
|
|
19
|
-
"author": "",
|
|
20
|
-
"license": "ISC",
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"axios": "^1.5.1",
|
|
23
|
-
"crypto-js": "^4.1.1",
|
|
24
|
-
"idb": "^8.0.0",
|
|
25
|
-
"lodash": "^4.17.21"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@babel/cli": "^7.23.0",
|
|
29
|
-
"@babel/core": "^7.23.2",
|
|
30
|
-
"@babel/preset-env": "^7.23.2"
|
|
31
|
-
}
|
|
32
|
-
}
|