Skip to content

Commit 7b4a205

Browse files
committed
Update deps
1 parent 2972744 commit 7b4a205

File tree

9 files changed

+96
-193
lines changed

9 files changed

+96
-193
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
name: Build
4848
strategy:
4949
matrix:
50-
os: [ubuntu-22.04, windows-2022, macos-14, [self-hosted, linux, ARM64]]
50+
os: [ubuntu-22.04, windows-2022, macos-14]
5151

5252
runs-on: ${{ matrix.os }}
5353

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Unit Tests
1717
strategy:
1818
matrix:
19-
os: [ubuntu-22.04, windows-2022, macos-14, [self-hosted, linux, ARM64]]
19+
os: [ubuntu-22.04, windows-2022, macos-14]
2020

2121
runs-on: ${{ matrix.os }}
2222

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Luis Blanco
3+
Copyright (c) 2025 Luis Blanco
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ require('deps-freeimage-raub');
77

88
const { getBin } = require('addon-tools-raub');
99

10-
const core = require(`./${getBin()}/image`);
10+
const core = require(`./${getBin()}/image.node`);
1111

1212
module.exports = core;

eslint.config.js

Lines changed: 1 addition & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,3 @@
11
'use strict';
22

3-
const js = require('@eslint/js');
4-
5-
6-
module.exports = [
7-
js.configs.recommended,
8-
{
9-
languageOptions: {
10-
'parserOptions': {
11-
'ecmaVersion': 2022,
12-
sourceType: 'commonjs'
13-
},
14-
globals: {
15-
global: 'readonly',
16-
require: 'readonly',
17-
Buffer: 'readonly',
18-
module: 'readonly',
19-
console: 'readonly',
20-
__dirname: 'readonly',
21-
process: 'readonly',
22-
setTimeout: 'readonly',
23-
},
24-
},
25-
'rules': {
26-
'arrow-parens': ['error', 'always'],
27-
'no-trailing-spaces': [
28-
'error',
29-
{
30-
'skipBlankLines': true
31-
}
32-
],
33-
'indent': [
34-
'error',
35-
'tab',
36-
{
37-
'SwitchCase': 1
38-
}
39-
],
40-
'operator-linebreak': [
41-
'error',
42-
'after',
43-
{
44-
'overrides': {
45-
'?': 'before',
46-
':': 'before'
47-
}
48-
}
49-
],
50-
'max-len': ['error', 110],
51-
'quotes': [
52-
'error',
53-
'single'
54-
],
55-
'semi': [
56-
'error',
57-
'always'
58-
],
59-
'no-multiple-empty-lines': ['error', { 'max': 3, 'maxEOF': 1, 'maxBOF': 1 }],
60-
'keyword-spacing': ['error', { 'before': true, 'after': true }],
61-
'space-before-blocks': ['error'],
62-
'space-before-function-paren': [
63-
'error', {'anonymous': 'always', 'named': 'never', 'asyncArrow': 'always'}
64-
],
65-
'camelcase': ['error'],
66-
'no-tabs': [0],
67-
'no-unused-vars': [
68-
'error',
69-
{
70-
'argsIgnorePattern': '^_',
71-
'varsIgnorePattern': '^_',
72-
'caughtErrorsIgnorePattern': '^_'
73-
}
74-
],
75-
'global-require': [0],
76-
'no-underscore-dangle': [0],
77-
'no-plusplus': [0],
78-
'no-shadow': [0],
79-
'node/no-unpublished-require': [0],
80-
'no-process-exit': [0],
81-
'linebreak-style': [0],
82-
'node/no-missing-require': [0],
83-
'no-console': [0],
84-
'node/no-unsupported-features/es-builtins': 0,
85-
'node/no-unsupported-features/node-builtins': 0,
86-
'func-names': [
87-
'error',
88-
'never',
89-
{
90-
'generators': 'never'
91-
}
92-
]
93-
}
94-
},
95-
];
3+
module.exports = require('addon-tools-raub/utils/eslint-common');

examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ fiLogo3.on('load', () => console.log('\nHTTP loaded', fiLogo3));
2121

2222

2323
(async () => {
24-
var fiLogo4 = await Image.loadAsync('freeimage.jpg');
24+
const fiLogo4 = await Image.loadAsync('freeimage.jpg');
2525
console.log('\nAsync loaded', fiLogo4);
2626
})();

js/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class JsImage extends Image {
130130
}
131131

132132
// Filesystem image
133-
require('fs').readFile(this._src, (err, data) => {
133+
require('node:fs').readFile(this._src, (err, data) => {
134134
if (err) {
135135
return this.emit('error', err);
136136
}

0 commit comments

Comments
 (0)