coily 0.7.1 → 0.7.3

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/api.cjs CHANGED
@@ -457,7 +457,7 @@ class Spring {
457
457
  "Damping must be greater than or equal to 0"
458
458
  );
459
459
  invariant(
460
- options.precsiion === void 0 || options.precsiion > 0,
460
+ options.precision === void 0 || options.precision > 0,
461
461
  "Precision must be greater than 0"
462
462
  );
463
463
  __privateSet$1(this, _target, options.target);
@@ -467,7 +467,7 @@ class Spring {
467
467
  damping: options.damping,
468
468
  position: options.target + (options.value ?? 0),
469
469
  velocity: 0,
470
- precision: options.precsiion ?? 2
470
+ precision: options.precision ?? 2
471
471
  }));
472
472
  __privateSet$1(this, _scheduler$1, scheduler);
473
473
  __privateSet$1(this, _newTarget, __privateGet$1(this, _target));
package/dist/api.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SpringSystem } from './shared/coily.87d79480.cjs';
2
- export { a as Spring } from './shared/coily.87d79480.cjs';
1
+ import { S as SpringSystem } from './shared/coily.7c365057.cjs';
2
+ export { a as Spring } from './shared/coily.7c365057.cjs';
3
3
 
4
4
  declare function createSpringSystem(): SpringSystem;
5
5
 
package/dist/api.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SpringSystem } from './shared/coily.87d79480.mjs';
2
- export { a as Spring } from './shared/coily.87d79480.mjs';
1
+ import { S as SpringSystem } from './shared/coily.7c365057.mjs';
2
+ export { a as Spring } from './shared/coily.7c365057.mjs';
3
3
 
4
4
  declare function createSpringSystem(): SpringSystem;
5
5
 
package/dist/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SpringSystem } from './shared/coily.87d79480.js';
2
- export { a as Spring } from './shared/coily.87d79480.js';
1
+ import { S as SpringSystem } from './shared/coily.7c365057.js';
2
+ export { a as Spring } from './shared/coily.7c365057.js';
3
3
 
4
4
  declare function createSpringSystem(): SpringSystem;
5
5
 
package/dist/api.mjs CHANGED
@@ -455,7 +455,7 @@ class Spring {
455
455
  "Damping must be greater than or equal to 0"
456
456
  );
457
457
  invariant(
458
- options.precsiion === void 0 || options.precsiion > 0,
458
+ options.precision === void 0 || options.precision > 0,
459
459
  "Precision must be greater than 0"
460
460
  );
461
461
  __privateSet$1(this, _target, options.target);
@@ -465,7 +465,7 @@ class Spring {
465
465
  damping: options.damping,
466
466
  position: options.target + (options.value ?? 0),
467
467
  velocity: 0,
468
- precision: options.precsiion ?? 2
468
+ precision: options.precision ?? 2
469
469
  }));
470
470
  __privateSet$1(this, _scheduler$1, scheduler);
471
471
  __privateSet$1(this, _newTarget, __privateGet$1(this, _target));
package/dist/loop.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as SpringSystem } from './shared/coily.87d79480.cjs';
1
+ import { S as SpringSystem } from './shared/coily.7c365057.cjs';
2
2
 
3
3
  declare function start(system: SpringSystem): () => void;
4
4
 
package/dist/loop.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as SpringSystem } from './shared/coily.87d79480.mjs';
1
+ import { S as SpringSystem } from './shared/coily.7c365057.mjs';
2
2
 
3
3
  declare function start(system: SpringSystem): () => void;
4
4
 
package/dist/loop.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as SpringSystem } from './shared/coily.87d79480.js';
1
+ import { S as SpringSystem } from './shared/coily.7c365057.js';
2
2
 
3
3
  declare function start(system: SpringSystem): () => void;
4
4
 
@@ -44,7 +44,7 @@ interface SpringOptions$1 {
44
44
  damping: number;
45
45
  target: number;
46
46
  value?: number;
47
- precsiion?: number;
47
+ precision?: number;
48
48
  }
49
49
  declare class Spring {
50
50
  #private;
@@ -44,7 +44,7 @@ interface SpringOptions$1 {
44
44
  damping: number;
45
45
  target: number;
46
46
  value?: number;
47
- precsiion?: number;
47
+ precision?: number;
48
48
  }
49
49
  declare class Spring {
50
50
  #private;
@@ -44,7 +44,7 @@ interface SpringOptions$1 {
44
44
  damping: number;
45
45
  target: number;
46
46
  value?: number;
47
- precsiion?: number;
47
+ precision?: number;
48
48
  }
49
49
  declare class Spring {
50
50
  #private;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coily",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "Simulate values using spring physics",
5
5
  "author": "Tim Morris <timthewebguy@gmail.com>",
6
6
  "homepage": "https://github.com/tkofh/coily#readme",
@@ -36,10 +36,10 @@
36
36
  "url": "https://github.com/tkofh/coily/issues"
37
37
  },
38
38
  "devDependencies": {
39
- "@vitest/coverage-v8": "^1.4.0",
40
- "@vitest/ui": "^1.4.0",
39
+ "@vitest/coverage-v8": "^2.0.4",
40
+ "@vitest/ui": "^2.0.4",
41
41
  "unbuild": "^2.0.0",
42
- "vitest": "^1.3.1"
42
+ "vitest": "^2.0.4"
43
43
  },
44
44
  "dependencies": {
45
45
  "tickloop": "^0.5.0"