saturon 0.2.0 → 0.2.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/package.json CHANGED
@@ -1,127 +1,127 @@
1
- {
2
- "name": "saturon",
3
- "version": "0.2.0",
4
- "description": "A runtime-extensible JavaScript library for parsing, converting, and manipulating colors with full CSS spec support.",
5
- "type": "module",
6
- "private": false,
7
- "author": "ganemedelabs",
8
- "license": "MIT",
9
- "main": "dist/index.js",
10
- "module": "dist/index.js",
11
- "types": "dist/index.d.ts",
12
- "unpkg": "dist/index.umd.js",
13
- "jsdelivr": "dist/index.umd.js",
14
- "exports": {
15
- ".": {
16
- "import": "./dist/index.js",
17
- "types": "./dist/index.d.ts"
18
- },
19
- "./config": {
20
- "import": "./dist/config.js",
21
- "types": "./dist/config.d.ts"
22
- },
23
- "./Color": {
24
- "import": "./dist/Color.js",
25
- "types": "./dist/Color.d.ts"
26
- },
27
- "./types": {
28
- "import": "./dist/types.js",
29
- "types": "./dist/types.d.ts"
30
- },
31
- "./utils": {
32
- "import": "./dist/utils.js",
33
- "types": "./dist/utils.d.ts"
34
- },
35
- "./converters": {
36
- "import": "./dist/converters.js",
37
- "types": "./dist/converters.d.ts"
38
- },
39
- "./math": {
40
- "import": "./dist/math.js",
41
- "types": "./dist/math.d.ts"
42
- }
43
- },
44
- "typesVersions": {
45
- "*": {
46
- "index.d.ts": [
47
- "dist/index.d.ts"
48
- ],
49
- "config.d.ts": [
50
- "dist/config.d.ts"
51
- ],
52
- "Color.d.ts": [
53
- "dist/Color.d.ts"
54
- ],
55
- "types.d.ts": [
56
- "dist/types.d.ts"
57
- ],
58
- "utils.d.ts": [
59
- "dist/utils.d.ts"
60
- ],
61
- "converters.d.ts": [
62
- "dist/converters.d.ts"
63
- ],
64
- "math.d.ts": [
65
- "dist/math.d.ts"
66
- ]
67
- }
68
- },
69
- "sideEffects": false,
70
- "repository": {
71
- "type": "git",
72
- "url": "https://github.com/ganemedelabs/saturon.git"
73
- },
74
- "bugs": {
75
- "url": "https://github.com/ganemedelabs/saturon/issues"
76
- },
77
- "homepage": "https://github.com/ganemedelabs/saturon#readme",
78
- "scripts": {
79
- "build": "tsc && esbuild dist/index.js --bundle --format=iife --global-name=Saturon --outfile=dist/index.umd.js && esbuild dist/index.js --bundle --minify --format=iife --global-name=Saturon --outfile=dist/index.umd.min.js",
80
- "test": "jest",
81
- "lint": "eslint .",
82
- "lint:fix": "eslint --fix .",
83
- "format": "prettier --write \"./**/*.{js,ts,json}\""
84
- },
85
- "files": [
86
- "dist",
87
- "README.md",
88
- "LICENSE",
89
- "package.json"
90
- ],
91
- "keywords": [
92
- "color-converter",
93
- "css-colors",
94
- "w3c",
95
- "color",
96
- "color-base",
97
- "hex-color",
98
- "named-color",
99
- "color-function",
100
- "light-dark",
101
- "color-mix",
102
- "transparent",
103
- "contrast-color",
104
- "device-cmyk",
105
- "currentcolor",
106
- "system-color"
107
- ],
108
- "devDependencies": {
109
- "@eslint/compat": "^1.4.0",
110
- "@eslint/eslintrc": "^3.3.1",
111
- "@eslint/js": "^9.37.0",
112
- "@types/jest": "^30.0.0",
113
- "@types/node": "^24.6.2",
114
- "@typescript-eslint/eslint-plugin": "^8.45.0",
115
- "@typescript-eslint/parser": "^8.45.0",
116
- "esbuild": "^0.25.11",
117
- "eslint": "^9.37.0",
118
- "eslint-config-prettier": "^10.1.8",
119
- "eslint-plugin-prettier": "^5.5.4",
120
- "jest": "^30.2.0",
121
- "jiti": "^2.6.1",
122
- "prettier": "^3.6.2",
123
- "ts-jest": "^29.4.4",
124
- "ts-node": "^10.9.2",
125
- "typescript": "^5.9.3"
126
- }
127
- }
1
+ {
2
+ "name": "saturon",
3
+ "version": "0.2.2",
4
+ "description": "A runtime-extensible JavaScript library for parsing, converting, and manipulating colors with full CSS spec support.",
5
+ "type": "module",
6
+ "private": false,
7
+ "author": "ganemedelabs",
8
+ "license": "MIT",
9
+ "main": "dist/index.js",
10
+ "module": "dist/index.js",
11
+ "types": "dist/index.d.ts",
12
+ "unpkg": "dist/index.umd.js",
13
+ "jsdelivr": "dist/index.umd.js",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/index.js",
17
+ "types": "./dist/index.d.ts"
18
+ },
19
+ "./config": {
20
+ "import": "./dist/config.js",
21
+ "types": "./dist/config.d.ts"
22
+ },
23
+ "./Color": {
24
+ "import": "./dist/Color.js",
25
+ "types": "./dist/Color.d.ts"
26
+ },
27
+ "./types": {
28
+ "import": "./dist/types.js",
29
+ "types": "./dist/types.d.ts"
30
+ },
31
+ "./utils": {
32
+ "import": "./dist/utils.js",
33
+ "types": "./dist/utils.d.ts"
34
+ },
35
+ "./converters": {
36
+ "import": "./dist/converters.js",
37
+ "types": "./dist/converters.d.ts"
38
+ },
39
+ "./math": {
40
+ "import": "./dist/math.js",
41
+ "types": "./dist/math.d.ts"
42
+ }
43
+ },
44
+ "typesVersions": {
45
+ "*": {
46
+ "index.d.ts": [
47
+ "dist/index.d.ts"
48
+ ],
49
+ "config.d.ts": [
50
+ "dist/config.d.ts"
51
+ ],
52
+ "Color.d.ts": [
53
+ "dist/Color.d.ts"
54
+ ],
55
+ "types.d.ts": [
56
+ "dist/types.d.ts"
57
+ ],
58
+ "utils.d.ts": [
59
+ "dist/utils.d.ts"
60
+ ],
61
+ "converters.d.ts": [
62
+ "dist/converters.d.ts"
63
+ ],
64
+ "math.d.ts": [
65
+ "dist/math.d.ts"
66
+ ]
67
+ }
68
+ },
69
+ "sideEffects": false,
70
+ "repository": {
71
+ "type": "git",
72
+ "url": "https://github.com/ganemedelabs/saturon.git"
73
+ },
74
+ "bugs": {
75
+ "url": "https://github.com/ganemedelabs/saturon/issues"
76
+ },
77
+ "homepage": "https://github.com/ganemedelabs/saturon#readme",
78
+ "scripts": {
79
+ "build": "tsc && esbuild dist/index.js --bundle --format=iife --global-name=Saturon --outfile=dist/index.umd.js && esbuild dist/index.js --bundle --minify --format=iife --global-name=Saturon --outfile=dist/index.umd.min.js",
80
+ "test": "jest",
81
+ "lint": "eslint .",
82
+ "lint:fix": "eslint --fix .",
83
+ "format": "prettier --write \"./**/*.{js,ts,json}\""
84
+ },
85
+ "files": [
86
+ "dist",
87
+ "README.md",
88
+ "LICENSE",
89
+ "package.json"
90
+ ],
91
+ "keywords": [
92
+ "color-converter",
93
+ "css-colors",
94
+ "w3c",
95
+ "color",
96
+ "color-base",
97
+ "hex-color",
98
+ "named-color",
99
+ "color-function",
100
+ "light-dark",
101
+ "color-mix",
102
+ "transparent",
103
+ "contrast-color",
104
+ "device-cmyk",
105
+ "currentcolor",
106
+ "system-color"
107
+ ],
108
+ "devDependencies": {
109
+ "@eslint/compat": "^1.4.0",
110
+ "@eslint/eslintrc": "^3.3.1",
111
+ "@eslint/js": "^9.37.0",
112
+ "@types/jest": "^30.0.0",
113
+ "@types/node": "^24.6.2",
114
+ "@typescript-eslint/eslint-plugin": "^8.45.0",
115
+ "@typescript-eslint/parser": "^8.45.0",
116
+ "esbuild": "^0.25.11",
117
+ "eslint": "^9.37.0",
118
+ "eslint-config-prettier": "^10.1.8",
119
+ "eslint-plugin-prettier": "^5.5.4",
120
+ "jest": "^30.2.0",
121
+ "jiti": "^2.6.1",
122
+ "prettier": "^3.6.2",
123
+ "ts-jest": "^29.4.4",
124
+ "ts-node": "^10.9.2",
125
+ "typescript": "^5.9.3"
126
+ }
127
+ }
@@ -1,17 +0,0 @@
1
- import { ColorModel } from "../types.js";
2
- declare module "../Color.js" {
3
- interface Color<M extends ColorModel = ColorModel> {
4
- /**
5
- * Lightens the color by the given amount.
6
- * @param amount - The amount to lighten the color by.
7
- * @returns A new `Color` instance with increased brightness.
8
- */
9
- lighten(amount: number): Color<"hsl">;
10
- /**
11
- * Darkens the color by the given amount.
12
- * @param amount - The amount to darken the color by.
13
- * @returns A new `Color` instance with decreased brightness.
14
- */
15
- darken(amount: number): Color<"hsl">;
16
- }
17
- }