From 7cf3b48821061231af7efdd981ac3a51e25eaff3 Mon Sep 17 00:00:00 2001 From: Bjorn Stromberg Date: Sun, 30 Jun 2024 08:56:49 +0800 Subject: [PATCH 1/4] run CI on pushes to master (fixes #665) --- .github/workflows/nodejs-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/nodejs-ci.yml b/.github/workflows/nodejs-ci.yml index 824711d..efe89fd 100644 --- a/.github/workflows/nodejs-ci.yml +++ b/.github/workflows/nodejs-ci.yml @@ -2,6 +2,8 @@ name: Node.js CI on: pull_request: branches: [ "master" ] + push: + branches: [ "master" ] jobs: From 40eade429702234416163c68fe44ffa40665174a Mon Sep 17 00:00:00 2001 From: Bjorn Stromberg Date: Sun, 30 Jun 2024 08:59:49 +0800 Subject: [PATCH 2/4] github CI badge should show status of builds on master (fixes #664) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e343a1..8ca24ed 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Node.js CI](https://github.com/Borewit/token-types/workflows/Node.js%20CI/badge.svg) +[![Node.js CI](https://github.com/Borewit/token-types/actions/workflows/nodejs-ci.yml/badge.svg?branch=master)](https://github.com/Borewit/token-types/actions/workflows/nodejs-ci.yml?query=branch%3Amaster) [![NPM version](https://badge.fury.io/js/token-types.svg)](https://npmjs.org/package/token-types) [![npm downloads](http://img.shields.io/npm/dm/token-types.svg)](https://npmcharts.com/compare/token-types,strtok3?start=1200&interval=30) [![coveralls](https://coveralls.io/repos/github/Borewit/token-types/badge.svg?branch=master)](https://coveralls.io/github/Borewit/token-types?branch=master) From 1f48d494e70ea96627a29bc7ece974d2d7e21be3 Mon Sep 17 00:00:00 2001 From: Bjorn Stromberg Date: Sun, 30 Jun 2024 09:00:22 +0800 Subject: [PATCH 3/4] remove duplicate 20.x entry in node-version matrix config --- .github/workflows/nodejs-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs-ci.yml b/.github/workflows/nodejs-ci.yml index efe89fd..ed7bc10 100644 --- a/.github/workflows/nodejs-ci.yml +++ b/.github/workflows/nodejs-ci.yml @@ -50,7 +50,7 @@ jobs: strategy: matrix: - node-version: [16.x, 18.x, 20.x, 20.x, 22.x] + node-version: [16.x, 18.x, 20.x, 22.x] steps: From d7ca32fff15fa5ef9a0af8301f4a1a9f936c3ce0 Mon Sep 17 00:00:00 2001 From: Bjorn Stromberg Date: Sun, 30 Jun 2024 09:00:55 +0800 Subject: [PATCH 4/4] remove extraneous whitespace --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8ca24ed..2d97d5e 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ npm install --save-dev @tokenizer/token ```js import * as strtok3 from 'strtok3'; import * as token from 'token-types'; - + (async () => { const tokenizer = await strtok3.fromFile("somefile.bin"); @@ -48,7 +48,7 @@ import * as token from 'token-types'; console.log(`My number: ${myNumber}`); } finally { tokenizer.close(); // Close the file - } + } })(); ``` @@ -92,7 +92,7 @@ import * as token from 'token-types'; String types: * Windows-1252 * ISO-8859-1 - + *) The tokens exceed the JavaScript IEEE 754 64-bit Floating Point precision, decoding and encoding is best effort based. ### Custom token