datagrok-tools 4.12.8 → 4.12.10

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.
@@ -277,7 +277,7 @@ function checkFuncSignatures(packagePath, files) {
277
277
  var outputs = _ref7.outputs;
278
278
  var value = true;
279
279
  var message = '';
280
- if (outputs.length === 1 && outputs[0].type === 'widget') {
280
+ if (!(outputs.length === 1 && outputs[0].type === 'widget')) {
281
281
  value = false;
282
282
  message += 'Package settings editors must have one output of type "widget"\n';
283
283
  }
@@ -28,7 +28,7 @@ var fetch = require('node-fetch');
28
28
  var grokDir = _path["default"].join(_os["default"].homedir(), '.grok');
29
29
  var confPath = _path["default"].join(grokDir, 'config.yaml');
30
30
  var defaultLaunchParameters = {
31
- args: ['--disable-dev-shm-usage', '--disable-features=site-per-process'],
31
+ args: ['--disable-dev-shm-usage', '--disable-features=site-per-process', '--window-size=1920,1080'],
32
32
  ignoreHTTPSErrors: true,
33
33
  headless: 'new',
34
34
  protocolTimeout: 0
@@ -164,50 +164,54 @@ function _getBrowserPage() {
164
164
  case 17:
165
165
  page = _context4.sent;
166
166
  _context4.next = 20;
167
- return page.setDefaultNavigationTimeout(0);
167
+ return page.setViewport({
168
+ width: 1920,
169
+ height: 1080
170
+ });
168
171
  case 20:
169
- _context4.next = 22;
172
+ page.setDefaultNavigationTimeout(0);
173
+ _context4.next = 23;
170
174
  return page["goto"]("".concat(url, "/oauth/"));
171
- case 22:
172
- _context4.next = 24;
175
+ case 23:
176
+ _context4.next = 25;
173
177
  return page.setCookie({
174
178
  name: 'auth',
175
179
  value: token
176
180
  });
177
- case 24:
178
- _context4.next = 26;
181
+ case 25:
182
+ _context4.next = 27;
179
183
  return page.evaluate(function (token) {
180
184
  window.localStorage.setItem('auth', token);
181
185
  }, token);
182
- case 26:
183
- _context4.next = 28;
186
+ case 27:
187
+ _context4.next = 29;
184
188
  return page["goto"](url);
185
- case 28:
186
- _context4.prev = 28;
187
- _context4.next = 31;
189
+ case 29:
190
+ _context4.prev = 29;
191
+ _context4.next = 32;
188
192
  return page.waitForFunction(function () {
189
193
  return document.querySelector('.grok-preloader') == null;
190
194
  }, {
191
195
  timeout: 3600000
192
196
  });
193
- case 31:
194
- _context4.next = 36;
197
+ case 32:
198
+ _context4.next = 37;
195
199
  break;
196
- case 33:
197
- _context4.prev = 33;
198
- _context4.t0 = _context4["catch"](28);
200
+ case 34:
201
+ _context4.prev = 34;
202
+ _context4.t0 = _context4["catch"](29);
199
203
  throw _context4.t0;
200
- case 36:
204
+ case 37:
201
205
  return _context4.abrupt("return", {
202
206
  browser: browser,
203
207
  page: page
204
208
  });
205
- case 37:
209
+ case 38:
206
210
  case "end":
207
211
  return _context4.stop();
208
212
  }
209
213
  }
210
- }, _callee4, null, [[28, 33]]);
214
+ }, _callee4, null, [[29, 34]]);
211
215
  }));
212
216
  return _getBrowserPage.apply(this, arguments);
213
217
  }
@@ -264,8 +268,8 @@ var recorderConfig = {
264
268
  fps: 25,
265
269
  ffmpeg_Path: null,
266
270
  videoFrame: {
267
- width: 1024,
268
- height: 768
271
+ width: 1280,
272
+ height: 630
269
273
  },
270
274
  videoCrf: 18,
271
275
  videoCodec: 'libx264',
@@ -273,7 +277,7 @@ var recorderConfig = {
273
277
  videoBitrate: 1000,
274
278
  autopad: {
275
279
  color: 'black'
276
- },
277
- aspectRatio: '4:3'
280
+ }
281
+ // aspectRatio: '16:9',
278
282
  };
279
283
  exports.recorderConfig = recorderConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.12.8",
3
+ "version": "4.12.10",
4
4
  "description": "Utility to upload and publish packages to Datagrok",
5
5
  "homepage": "https://github.com/datagrok-ai/public/tree/master/tools#readme",
6
6
  "dependencies": {
package/.puppeteerrc.cjs DELETED
@@ -1,9 +0,0 @@
1
- const {join} = require('path');
2
-
3
- /**
4
- * @type {import("puppeteer").Configuration}
5
- */
6
- module.exports = {
7
- // Changes the cache location for Puppeteer.
8
- cacheDirectory: join(__dirname, '.cache', 'puppeteer'),
9
- };