@rindo/core 2.17.2-0 → 2.17.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/mock-doc/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Mock Doc v2.17.2-0 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Mock Doc v2.17.2 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  const CONTENT_REF_ID = 'r';
5
5
  const ORG_LOCATION_ID = 'o';
@@ -2036,6 +2036,9 @@ class MockElement extends MockNode {
2036
2036
  set title(value) {
2037
2037
  this.setAttributeNS(null, 'title', value);
2038
2038
  }
2039
+ animate() {
2040
+ /**/
2041
+ }
2039
2042
  onanimationstart() {
2040
2043
  /**/
2041
2044
  }
@@ -2300,6 +2303,18 @@ class MockElement extends MockNode {
2300
2303
  onwheel() {
2301
2304
  /**/
2302
2305
  }
2306
+ requestFullscreen() {
2307
+ /**/
2308
+ }
2309
+ scrollBy() {
2310
+ /**/
2311
+ }
2312
+ scrollTo() {
2313
+ /**/
2314
+ }
2315
+ scrollIntoView() {
2316
+ /**/
2317
+ }
2303
2318
  toString(opts) {
2304
2319
  return serializeNodeToHtml(this, opts);
2305
2320
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/mock-doc",
3
- "version": "2.17.2-0",
3
+ "version": "2.17.2",
4
4
  "description": "Mock window, document and DOM outside of a browser environment.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core",
3
- "version": "2.17.2-0",
3
+ "version": "2.17.2",
4
4
  "license": "MIT",
5
5
  "main": "./internal/rindo-core/index.cjs",
6
6
  "module": "./internal/rindo-core/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/screenshot",
3
- "version": "2.17.2-0",
3
+ "version": "2.17.2",
4
4
  "description": "Rindo Screenshot.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
package/sys/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Node System v2.17.2-0 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Node System v2.17.2 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  function _interopDefaultLegacy(e) {
5
5
  return e && "object" == typeof e && "default" in e ? e : {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/sys/node",
3
- "version": "2.17.2-0",
3
+ "version": "2.17.2",
4
4
  "description": "Rindo Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Node System Worker v2.17.2-0 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Node System Worker v2.17.2 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  function _interopNamespace(e) {
5
5
  if (e && e.__esModule) return e;
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Testing v2.17.2-0 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Testing v2.17.2 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  function _lazyRequire(e) {
5
5
  return new Proxy({}, {
@@ -449,38 +449,40 @@ function versionIncluded(e) {
449
449
  return matchesRange(e);
450
450
  }
451
451
 
452
- function mockConfig(e) {
452
+ function mockConfig(e = {}) {
453
453
  const t = path__default.default.resolve("/");
454
- return e || (e = createTestingSystem()), e.getCurrentDirectory = () => t, {
454
+ let {sys: r} = e;
455
+ return r || (r = createTestingSystem()), r.getCurrentDirectory = () => t, {
455
456
  _isTesting: !0,
456
- namespace: "Testing",
457
- rootDir: t,
458
- globalScript: null,
459
- devMode: !0,
460
- enableCache: !1,
461
457
  buildAppCore: !1,
462
458
  buildDist: !0,
463
- flags: createConfigFlags(),
464
- bundles: null,
465
- outputTargets: null,
466
459
  buildEs5: !1,
460
+ bundles: null,
461
+ devMode: !0,
462
+ enableCache: !1,
463
+ extras: {},
464
+ flags: createConfigFlags(),
465
+ globalScript: null,
467
466
  hashFileNames: !1,
468
467
  logger: new TestingLogger,
469
468
  maxConcurrentWorkers: 0,
470
469
  minifyCss: !1,
471
470
  minifyJs: !1,
472
- sys: e,
473
- testing: null,
474
- validateTypes: !1,
475
- extras: {},
471
+ namespace: "Testing",
476
472
  nodeResolve: {
477
473
  customResolveOptions: {}
478
474
  },
479
- sourceMap: !0,
475
+ outputTargets: null,
480
476
  rollupPlugins: {
481
477
  before: [],
482
478
  after: []
483
- }
479
+ },
480
+ rootDir: t,
481
+ sourceMap: !0,
482
+ sys: r,
483
+ testing: null,
484
+ validateTypes: !1,
485
+ ...e
484
486
  };
485
487
  }
486
488
 
@@ -3044,7 +3046,7 @@ const createSystem = e => {
3044
3046
  u("/");
3045
3047
  const D = {
3046
3048
  name: "in-memory",
3047
- version: "2.17.2-0",
3049
+ version: "2.17.2",
3048
3050
  events: i,
3049
3051
  access: async e => c(e),
3050
3052
  accessSync: c,
@@ -3989,11 +3991,16 @@ exports.createJestPuppeteerEnvironment = function createJestPuppeteerEnvironment
3989
3991
  hasVdomText: !1,
3990
3992
  hasVdomXlink: !1,
3991
3993
  ...e
3992
- }), exports.mockValidatedConfig = function mockValidatedConfig(e) {
3994
+ }), exports.mockValidatedConfig = function mockValidatedConfig(e = {}) {
3995
+ var t;
3996
+ const r = mockConfig(e);
3993
3997
  return {
3994
- ...mockConfig(e),
3998
+ ...r,
3995
3999
  flags: createConfigFlags(),
3996
- logger: mockLogger()
4000
+ logger: mockLogger(),
4001
+ outputTargets: null !== (t = r.outputTargets) && void 0 !== t ? t : [],
4002
+ sys: createTestingSystem(),
4003
+ ...e
3997
4004
  };
3998
4005
  }, exports.mockWindow = function mockWindow(e = null) {
3999
4006
  return new index_cjs.MockWindow(e);
@@ -1,21 +1,22 @@
1
- import type { BuildCtx, Cache, CompilerCtx, CompilerSystem, Config, LoadConfigInit, ValidatedConfig, Module, UnvalidatedConfig } from '@rindo/core/internal';
1
+ import type { BuildCtx, Cache, CompilerCtx, Config, LoadConfigInit, ValidatedConfig, Module, UnvalidatedConfig } from '@rindo/core/internal';
2
2
  import { TestingSystem } from './testing-sys';
3
3
  import { TestingLogger } from './testing-logger';
4
4
  /**
5
5
  * Creates a mock instance of an internal, validated Rindo configuration object
6
- * @param sys an optional compiler system to associate with the config. If one is not provided, one will be created for
7
6
  * the caller
7
+ * @param overrides a partial implementation of `ValidatedConfig`. Any provided fields will override the defaults
8
+ * provided by this function.
8
9
  * @returns the mock Rindo configuration
9
10
  */
10
- export declare function mockValidatedConfig(sys?: CompilerSystem): ValidatedConfig;
11
+ export declare function mockValidatedConfig(overrides?: Partial<ValidatedConfig>): ValidatedConfig;
11
12
  /**
12
13
  * Creates a mock instance of a Rindo configuration entity. The mocked configuration has no guarantees around the
13
14
  * types/validity of its data.
14
- * @param sys an optional compiler system to associate with the config. If one is not provided, one will be created for
15
- * the caller
15
+ * @param overrides a partial implementation of `UnvalidatedConfig`. Any provided fields will override the defaults
16
+ * provided by this function.
16
17
  * @returns the mock Rindo configuration
17
18
  */
18
- export declare function mockConfig(sys?: CompilerSystem): UnvalidatedConfig;
19
+ export declare function mockConfig(overrides?: Partial<UnvalidatedConfig>): UnvalidatedConfig;
19
20
  /**
20
21
  * Creates a configuration object used to bootstrap a Rindo task invocation
21
22
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/testing",
3
- "version": "2.17.2-0",
3
+ "version": "2.17.2",
4
4
  "description": "Rindo testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",