File tree Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ jobs:
1010 fail-fast : false
1111 matrix :
1212 node-version :
13+ - 22
1314 - 20
1415 - 18
15- - 16
1616 steps :
17- - uses : actions/checkout@v3
18- - uses : actions/setup-node@v3
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-node@v4
1919 with :
2020 node-version : ${{ matrix.node-version }}
2121 - run : npm install
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const reverseNames = Object.create(null);
44
55// Create a list of reverse color names
66for ( const name in colorNames ) {
7- if ( Object . hasOwnProperty . call ( colorNames , name ) ) {
7+ if ( Object . hasOwn ( colorNames , name ) ) {
88 reverseNames [ colorNames [ name ] ] = name ;
99 }
1010}
@@ -106,7 +106,7 @@ cs.get.rgb = function (string) {
106106 return [ 0 , 0 , 0 , 0 ] ;
107107 }
108108
109- if ( ! Object . hasOwnProperty . call ( colorNames , match [ 1 ] ) ) {
109+ if ( ! Object . hasOwn ( colorNames , match [ 1 ] ) ) {
110110 return null ;
111111 }
112112
Original file line number Diff line number Diff line change 11import { expectType } from 'tsd' ;
2- import colorString from './index.js' ;
3- import type { Model } from './index.js' ;
2+ import colorString , { type Model } from './index.js' ;
43
54type GetColorResult = { model : Model ; value : number [ ] } | undefined ;
65type GetSpecificTypeResult = number [ ] | undefined ;
Original file line number Diff line number Diff line change 1212 "type" : " module" ,
1313 "exports" : " ./index.js" ,
1414 "types" : " ./index.d.ts" ,
15- "engines" : {
16- "node" : " >=14.6"
17- },
1815 "scripts" : {
1916 "test" : " xo && tsd && node test/basic.js"
2017 },
3330 "color-name" : " ^2.0.0"
3431 },
3532 "devDependencies" : {
36- "tsd" : " ^0.28.1 " ,
37- "xo" : " ^0.54.2 "
33+ "tsd" : " ^0.31.2 " ,
34+ "xo" : " ^0.60.0 "
3835 },
3936 "keywords" : [
4037 " color" ,
You can’t perform that action at this time.
0 commit comments