@solid-primitives/range
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -157,18 +157,9 @@ // src/common.ts | ||
if ("to" in props) { | ||
start = () => { | ||
var _a; | ||
return (_a = props.start) != null ? _a : 0; | ||
}; | ||
start = () => props.start ?? 0; | ||
to = () => props.to; | ||
step = () => { | ||
var _a; | ||
return (_a = props.step) != null ? _a : 1; | ||
}; | ||
step = () => props.step ?? 1; | ||
} else { | ||
start = accessor(() => props[0]); | ||
to = accessor(() => props[1]); | ||
step = accessor(() => { | ||
var _a; | ||
return (_a = props[2]) != null ? _a : 1; | ||
}); | ||
step = accessor(() => props[2] ?? 1); | ||
} | ||
@@ -246,18 +237,9 @@ const fallback = props.fallback ? () => props.fallback : void 0; | ||
if ("to" in props) { | ||
start = () => { | ||
var _a; | ||
return (_a = props.start) != null ? _a : 0; | ||
}; | ||
start = () => props.start ?? 0; | ||
to = () => props.to; | ||
step = () => { | ||
var _a; | ||
return (_a = props.step) != null ? _a : 1; | ||
}; | ||
step = () => props.step ?? 1; | ||
} else { | ||
start = accessor(() => props[0]); | ||
to = accessor(() => props[1]); | ||
step = accessor(() => { | ||
var _a; | ||
return (_a = props[2]) != null ? _a : 1; | ||
}); | ||
step = accessor(() => props[2] ?? 1); | ||
} | ||
@@ -264,0 +246,0 @@ const fallback = props.fallback ? () => props.fallback : void 0; |
{ | ||
"name": "@solid-primitives/range", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Control Flow Primitives for displaying given number or a number range of elements.", | ||
@@ -38,9 +38,2 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>", | ||
], | ||
"scripts": { | ||
"start": "vite serve dev --host", | ||
"dev": "yarn start", | ||
"build": "tsup", | ||
"test": "vitest run test", | ||
"test:watch": "vitest watch test" | ||
}, | ||
"keywords": [ | ||
@@ -54,12 +47,12 @@ "control-flow", | ||
"devDependencies": { | ||
"jsdom": "^19.0.0", | ||
"prettier": "^2.5.1", | ||
"jsdom": "^20.0.0", | ||
"prettier": "^2.7.1", | ||
"solid-transition-group": "^0.0.8", | ||
"tslib": "^2.3.1", | ||
"tsup": "^5.12.1", | ||
"typescript": "^4.6.2", | ||
"unocss": "0.28.1", | ||
"vite": "2.8.6", | ||
"vite-plugin-solid": "2.2.6", | ||
"vitest": "^0.7.12" | ||
"tslib": "^2.4.0", | ||
"tsup": "^6.2.2", | ||
"typescript": "^4.7.4", | ||
"unocss": "^0.44.7", | ||
"vite": "^3.0.7", | ||
"vite-plugin-solid": "^2.3.0", | ||
"vitest": "^0.20.3" | ||
}, | ||
@@ -70,4 +63,11 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@solid-primitives/utils": "^1.0.0" | ||
"@solid-primitives/utils": "^3.0.1" | ||
}, | ||
"scripts": { | ||
"start": "vite serve dev --host", | ||
"dev": "npm run start", | ||
"build": "tsup", | ||
"test": "vitest run test", | ||
"test:watch": "vitest watch test" | ||
} | ||
} |
@@ -7,3 +7,3 @@ <p> | ||
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=for-the-badge)](https://lerna.js.org/) | ||
[![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?style=for-the-badge&logo=turborepo)](https://turborepo.org/) | ||
[![size](https://img.shields.io/bundlephobia/minzip/@solid-primitives/range?style=for-the-badge&label=size)](https://bundlephobia.com/package/@solid-primitives/range) | ||
@@ -278,9 +278,2 @@ [![version](https://img.shields.io/npm/v/@solid-primitives/range?style=for-the-badge)](https://www.npmjs.com/package/@solid-primitives/range) | ||
<details> | ||
<summary><b>Expand Changelog</b></summary> | ||
0.0.100 | ||
Initial release as a Stage-0 primitive. | ||
</details> | ||
See [CHANGELOG.md](./CHANGELOG.md) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34120
666
278
+ Added@solid-primitives/utils@3.1.0(transitive)
- Removed@solid-primitives/utils@1.5.2(transitive)