Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #45

Merged
merged 3 commits into from
Mar 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [14.x, 16.x, 17.x]

steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- run: npm ci

publish:
Expand All @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ addons:
language: node_js
node_js:
- "14"
- "16"
- "17"
python:
- "2.7"
before_script:
Expand Down
41 changes: 0 additions & 41 deletions example/promise.js

This file was deleted.

23 changes: 14 additions & 9 deletions example/test.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
var Converter = require('../js/convert.js');
var {
Ppt2PngConverter
} = require('../dist/converter.js');
var glob = require('glob');

// options is optional
glob('input/test/*.ppt*', {}, function(error, files) {
glob('test/*.ppt*', {}, function(error, files) {
console.log('files: ', files);
if (files) {
new Converter({
const converter = Ppt2PngConverter.create({
files: files,
output: 'output/test/',
output: 'output/',
invert: true,
greyscale: true,
deletePdfFile: false,
outputType: 'png',
logLevel: 5,
fileNameFormat: '_vers_%d',
documentConvert: 'libreoffice --headless --convert-to pdf --outdir',
callback: function(data) {
console.log(data);
}
}).run();
documentConvert: 'libreoffice --headless --convert-to pdf --outdir'
});

const result = converter.convert();

console.log({
result
});
}
});
8 changes: 4 additions & 4 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ module.exports = {
moduleFileExtensions: ['js', 'jsx', 'json'],

transform: {
'^.+\\.js?$': 'babel-jest',
'^.+\\.js?$': 'babel-jest'
},

transformIgnorePatterns: ['/node_modules/'],

moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@/(.*)$': '<rootDir>/src/$1'
},

testMatch: ['**/__tests__/*.js'],

testURL: 'http://localhost/',

collectCoverage: true,
collectCoverageFrom: ['src/**/*.js'],
collectCoverage: true,
collectCoverageFrom: ['src/**/*.js']
};
Loading