@localnerve/sass-asset-functions 2.0.0 → 2.2.0

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.
@@ -12,15 +12,21 @@ jobs:
12
12
 
13
13
  strategy:
14
14
  matrix:
15
- node-version: [14.x, 16.x]
15
+ node-version: [14.x, 16.x, 18.x]
16
16
  # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
17
17
 
18
18
  steps:
19
19
  - uses: actions/checkout@v3
20
20
  - name: Use Node.js ${{ matrix.node-version }}
21
- uses: actions/setup-node@v3.0.0
21
+ uses: actions/setup-node@v3
22
22
  with:
23
23
  node-version: ${{ matrix.node-version }}
24
24
  - run: npm ci
25
25
  - name: Run Lint and Test
26
- run: npm run lint && npm test
26
+ run: npm run lint && npm test
27
+ - name: Coverage Upload
28
+ if: ${{ success() }}
29
+ uses: coverallsapp/github-action@master
30
+ with:
31
+ github-token: ${{ secrets.GITHUB_TOKEN }}
32
+ path-to-lcov: ./coverage/lcov.info
package/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  ![Verify](https://github.com/localnerve/sass-asset-functions/workflows/Verify/badge.svg)
6
6
  [![npm version](https://badge.fury.io/js/%40localnerve%2Fsass-asset-functions.svg)](https://badge.fury.io/js/%40localnerve%2Fsass-asset-functions)
7
+ [![Coverage Status](https://coveralls.io/repos/github/localnerve/sass-asset-functions/badge.svg?branch=master)](https://coveralls.io/github/localnerve/sass-asset-functions?branch=master)
7
8
 
8
9
  This module supplies functions to a Sass compiler which can be called from your Sass code.
9
10
  For example, the `image-url` used here in place of `url` adds build-time configuration to resolve the file to the proper location as seen from the web:
package/jest.config.js CHANGED
@@ -1,4 +1,6 @@
1
1
  module.exports = {
2
+ collectCoverage: true,
3
+ coverageDirectory: 'coverage',
2
4
  verbose: true,
3
5
  testEnvironment: 'node'
4
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localnerve/sass-asset-functions",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "description": "compass-style asset functions for dart-sass or other sass compilers",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -37,14 +37,14 @@
37
37
  },
38
38
  "homepage": "https://github.com/localnerve/sass-asset-functions",
39
39
  "dependencies": {
40
- "image-size": "^1.0.1",
40
+ "image-size": "^1.0.2",
41
41
  "mime": "^3.0.0",
42
- "sass": "^1.49.9"
42
+ "sass": "^1.56.1"
43
43
  },
44
44
  "devDependencies": {
45
- "jest": "^27.5.1",
46
- "eslint": "^8.12.0",
47
- "node-sass": "^7.0.1"
45
+ "jest": "^29.3.1",
46
+ "eslint": "^8.27.0",
47
+ "node-sass": "^8.0.0"
48
48
  },
49
49
  "engines": {
50
50
  "node": ">= 14"