@sharadox/vitest-configuration-web-library 0.2.1-motion.24 → 0.2.1

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.
@@ -1,8 +1,11 @@
1
- const { prototype } = globalThis.Animation;
2
- const cancel = prototype.cancel;
3
- prototype.cancel = function () {
4
- this.finished.catch(() => { });
5
- cancel.call(this);
6
- };
1
+ // A file that runs in node inside a browser-like project has no animations: nothing to do.
2
+ const prototype = globalThis.Animation?.prototype;
3
+ if (prototype) {
4
+ const cancel = prototype.cancel;
5
+ prototype.cancel = function () {
6
+ this.finished.catch(() => { });
7
+ cancel.call(this);
8
+ };
9
+ }
7
10
  export {};
8
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/browser-animation/index.ts"],"names":[],"mappings":"AAeA,MAAM,EAAE,SAAS,EAAE,GAAI,UAAiE,CAAC,SAAS,CAAC;AACnG,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;AAChC,SAAS,CAAC,MAAM,GAAG;IACjB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IAC9B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACpB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/browser-animation/index.ts"],"names":[],"mappings":"AAeA,2FAA2F;AAC3F,MAAM,SAAS,GAAI,UAAkE,CAAC,SAAS,EAAE,SAAS,CAAC;AAC3G,IAAI,SAAS,EAAE,CAAC;IACd,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAChC,SAAS,CAAC,MAAM,GAAG;QACjB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QAC9B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharadox/vitest-configuration-web-library",
3
- "version": "0.2.1-motion.24",
3
+ "version": "0.2.1",
4
4
  "description": "Shared Vitest configurations for Sharadox libraries and applications: self-imports by package name, test file patterns, React and Sass support, and 100% coverage thresholds.",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENCA.md",