@number-flow/svelte 0.1.0 → 0.1.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.
@@ -34,16 +34,11 @@ export let continuous = NumberFlowElement.defaultProps.continuous;
34
34
  export let el = void 0;
35
35
  $: formatter = new Intl.NumberFormat(locales, format);
36
36
  $: parts = partitionParts(value, formatter);
37
- $: rest = Object.fromEntries(
38
- Object.entries($$restProps).map(
39
- ([key, value2]) => key in NumberFlowElement.defaultProps ? [`__svelte_${key}`, value2] : [key, value2]
40
- )
41
- );
42
37
  </script>
43
38
 
44
39
  <number-flow-svelte
45
40
  bind:this={el}
46
- {...rest}
41
+ {...$$restProps}
47
42
  data-will-change={willChange ? '' : undefined}
48
43
  on:animationsstart
49
44
  on:animationsfinish
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.0",
6
+ "version": "0.1.2",
7
7
  "description": "A component to transition and format numbers.",
8
8
  "license": "MIT",
9
9
  "homepage": "https://number-flow.barvian.me/svelte",
@@ -29,13 +29,15 @@
29
29
  "!dist/**/*.spec.*",
30
30
  "README.md"
31
31
  ],
32
+ "main": "./dist/index.js",
32
33
  "svelte": "./dist/index.js",
33
34
  "types": "./dist/index.d.ts",
34
35
  "type": "module",
35
36
  "exports": {
36
37
  ".": {
37
38
  "types": "./dist/index.d.ts",
38
- "svelte": "./dist/index.js"
39
+ "svelte": "./dist/index.js",
40
+ "default": "./dist/index.js"
39
41
  }
40
42
  },
41
43
  "dependencies": {