@localnerve/sass-asset-functions 0.1.0 → 2.0.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,13 +12,13 @@ jobs:
12
12
 
13
13
  strategy:
14
14
  matrix:
15
- node-version: [10.x, 12.x, 14.x]
15
+ node-version: [14.x, 16.x]
16
16
  # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
17
17
 
18
18
  steps:
19
- - uses: actions/checkout@v2
19
+ - uses: actions/checkout@v3
20
20
  - name: Use Node.js ${{ matrix.node-version }}
21
- uses: actions/setup-node@v2.1.4
21
+ uses: actions/setup-node@v3.0.0
22
22
  with:
23
23
  node-version: ${{ matrix.node-version }}
24
24
  - run: npm ci
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021, LocalNerve
3
+ Copyright (c) 2022, LocalNerve
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/lib/processor.js CHANGED
@@ -100,7 +100,7 @@ class Processor {
100
100
  inline_image (filepath, mime_type, done) {
101
101
  const src = this.real_path(filepath, 'images');
102
102
 
103
- mime_type = mime_type || mime.lookup(src);
103
+ mime_type = mime_type || mime.getType(src);
104
104
 
105
105
  fs.readFile(src, (err, data) => {
106
106
  if (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localnerve/sass-asset-functions",
3
- "version": "0.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "compass-style asset functions for dart-sass or other sass compilers",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -37,16 +37,16 @@
37
37
  },
38
38
  "homepage": "https://github.com/localnerve/sass-asset-functions",
39
39
  "dependencies": {
40
- "image-size": "^0.3.5",
41
- "mime": "^1.3.4",
42
- "sass": "^1.32.8"
40
+ "image-size": "^1.0.1",
41
+ "mime": "^3.0.0",
42
+ "sass": "^1.49.9"
43
43
  },
44
44
  "devDependencies": {
45
- "jest": "^26.6.3",
46
- "eslint": "^7.22.0",
47
- "node-sass": ">= 3.2 < 5"
45
+ "jest": "^27.5.1",
46
+ "eslint": "^8.12.0",
47
+ "node-sass": "^7.0.1"
48
48
  },
49
49
  "engines": {
50
- "node": ">= 10"
50
+ "node": ">= 14"
51
51
  }
52
52
  }