Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Jan 7, 2025
1 parent 2972744 commit 7b4a205
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 193 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
name: Build
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-14, [self-hosted, linux, ARM64]]
os: [ubuntu-22.04, windows-2022, macos-14]

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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Unit Tests
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-14, [self-hosted, linux, ARM64]]
os: [ubuntu-22.04, windows-2022, macos-14]

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

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Luis Blanco
Copyright (c) 2025 Luis Blanco

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion core.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ require('deps-freeimage-raub');

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

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

module.exports = core;
94 changes: 1 addition & 93 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,95 +1,3 @@
'use strict';

const js = require('@eslint/js');


module.exports = [
js.configs.recommended,
{
languageOptions: {
'parserOptions': {
'ecmaVersion': 2022,
sourceType: 'commonjs'
},
globals: {
global: 'readonly',
require: 'readonly',
Buffer: 'readonly',
module: 'readonly',
console: 'readonly',
__dirname: 'readonly',
process: 'readonly',
setTimeout: 'readonly',
},
},
'rules': {
'arrow-parens': ['error', 'always'],
'no-trailing-spaces': [
'error',
{
'skipBlankLines': true
}
],
'indent': [
'error',
'tab',
{
'SwitchCase': 1
}
],
'operator-linebreak': [
'error',
'after',
{
'overrides': {
'?': 'before',
':': 'before'
}
}
],
'max-len': ['error', 110],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'no-multiple-empty-lines': ['error', { 'max': 3, 'maxEOF': 1, 'maxBOF': 1 }],
'keyword-spacing': ['error', { 'before': true, 'after': true }],
'space-before-blocks': ['error'],
'space-before-function-paren': [
'error', {'anonymous': 'always', 'named': 'never', 'asyncArrow': 'always'}
],
'camelcase': ['error'],
'no-tabs': [0],
'no-unused-vars': [
'error',
{
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_',
'caughtErrorsIgnorePattern': '^_'
}
],
'global-require': [0],
'no-underscore-dangle': [0],
'no-plusplus': [0],
'no-shadow': [0],
'node/no-unpublished-require': [0],
'no-process-exit': [0],
'linebreak-style': [0],
'node/no-missing-require': [0],
'no-console': [0],
'node/no-unsupported-features/es-builtins': 0,
'node/no-unsupported-features/node-builtins': 0,
'func-names': [
'error',
'never',
{
'generators': 'never'
}
]
}
},
];
module.exports = require('addon-tools-raub/utils/eslint-common');
2 changes: 1 addition & 1 deletion examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ fiLogo3.on('load', () => console.log('\nHTTP loaded', fiLogo3));


(async () => {
var fiLogo4 = await Image.loadAsync('freeimage.jpg');
const fiLogo4 = await Image.loadAsync('freeimage.jpg');
console.log('\nAsync loaded', fiLogo4);
})();
2 changes: 1 addition & 1 deletion js/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class JsImage extends Image {
}

// Filesystem image
require('fs').readFile(this._src, (err, data) => {
require('node:fs').readFile(this._src, (err, data) => {
if (err) {
return this.emit('error', err);
}
Expand Down
Loading

0 comments on commit 7b4a205

Please # to comment.