Skip to content
Open
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
18 changes: 9 additions & 9 deletions .github/workflows/prebuild-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
sudo dpkg --add-architecture i386
sudo apt-get update -y -qq
sudo apt-get install -y g++-multilib gcc-multilib libcups2-dev libcups2-dev:i386 libc6-dev-i386 linux-libc-dev linux-libc-dev:i386
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 16.x
- uses: actions/checkout@v1
node-version: 20.x
- uses: actions/checkout@v3
- run: npm i
- name: Prebuild
run: |
Expand All @@ -31,10 +31,10 @@ jobs:
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 16.x
- uses: actions/checkout@v1
node-version: 20.x
- uses: actions/checkout@v3
- run: npm i
- name: Prebuild
run: |
Expand All @@ -45,10 +45,10 @@ jobs:
runs-on: windows-2019
timeout-minutes: 30
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 16.x
- uses: actions/checkout@v1
node-version: 20.x
- uses: actions/checkout@v3
- run: npm i
- name: Prebuild
run: |
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/prebuild-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
sudo dpkg --add-architecture i386
sudo apt-get update -y -qq
sudo apt-get install -y g++-multilib gcc-multilib libcups2-dev libcups2-dev:i386 libc6-dev-i386 linux-libc-dev linux-libc-dev:i386
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 16.x
- uses: actions/checkout@v1
node-version: 20.x
- uses: actions/checkout@v3
- run: npm i
- name: Prebuild
run: |
Expand All @@ -29,10 +29,10 @@ jobs:
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 16.x
- uses: actions/checkout@v1
node-version: 20.x
- uses: actions/checkout@v3
- run: npm i
- name: Prebuild
run: |
Expand All @@ -43,10 +43,10 @@ jobs:
runs-on: windows-2019
timeout-minutes: 30
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 16.x
- uses: actions/checkout@v1
node-version: 20.x
- uses: actions/checkout@v3
- run: npm i
- name: Prebuild
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ prebuilds/
*.node
*.swp
*.log

.vscode
5 changes: 3 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"variables": {
"module_name%": "node_printer",
"module_path%": "lib/binding"
"module_path%": "lib/binding",
"openssl_fips": ""
},
'targets': [
{
Expand Down Expand Up @@ -61,7 +62,7 @@
"-stdlib=libc++"
],
'xcode_settings': {
"OTHER_CPLUSPLUSFLAGS":["-std=c++14", "-stdlib=libc++"],
"OTHER_CPLUSPLUSFLAGS":["-std=c++17", "-stdlib=libc++"],
"OTHER_LDFLAGS": ["-stdlib=libc++"],
"MACOSX_DEPLOYMENT_TARGET": "10.7",
},
Expand Down
87 changes: 47 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,69 +2,76 @@
"name": "@grandchef/node-printer",
"description": "Node.js printer bindings",
"version": "0.7.1",
"main": "./lib/printer",
"exports": {
".": "./lib/printer.js",
"./build": "./build.js"
"author": {
"name": "Ion Lupascu",
"url": "http://program-support.co.uk/",
"email": "ionlupascu@gmail.com"
},
"scripts": {
"apply-patches": "patch-package",
"install": "prebuild-install || node-gyp rebuild",
"prebuild": "prebuild",
"rebuild": "node-gyp rebuild",
"test": "nodeunit test"
"binary": {
"module_name": "node_printer",
"module_path": "./lib/binding",
"host": "https://github.com/grandchef/node-printer/releases/download/",
"remote_path": "v{version}"
},
"contributors": [
"Thiago Lugli <thiagoelg@gmail.com>",
"Eko Eryanto <ekoeryanto@gmail.com>",
"Francimar Alves <mazinsw@gmail.com>"
],
"dependencies": {
"@mapbox/node-pre-gyp": "^1.0.9",
"nan": "^2.15.0",
"prebuild-install": "^7.0.1"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"eslint": "^7.11.0",
"eslint-config-egg": "^8.1.2",
"husky": "^4.3.0",
"lint-staged": "^10.4.2",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"eslint": "^8.48.0",
"eslint-config-egg": "^12.2.1",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"node-abi": "^3.8.0",
"node-gyp": "^9.4.0",
"nodeunit": "*",
"patch-package": "^6.4.7",
"patch-package": "^8.0.0",
"prebuild": "^11.0.4",
"prebuild-ci": "^4.0.0"
},
"engines": {
"node": ">= 4.0.0"
},
"binary": {
"module_name": "node_printer",
"module_path": "./lib/binding",
"host": "https://github.com/grandchef/node-printer/releases/download/",
"remote_path": "v{version}"
},
"directories": {
"example": "examples",
"lib": "lib",
"test": "test"
},
"repository": {
"type": "git",
"url": "https://github.com/grandchef/node-printer.git"
"engines": {
"node": ">= 4.0.0"
},
"exports": {
".": "./lib/printer.js",
"./build": "./build.js"
},
"keywords": [
"native",
"node",
"printer"
],
"types": "types/index.d.ts",
"author": {
"name": "Ion Lupascu",
"url": "http://program-support.co.uk/",
"email": "ionlupascu@gmail.com"
"license": "MIT",
"main": "./lib/printer",
"repository": {
"type": "git",
"url": "https://github.com/grandchef/node-printer.git"
},
"contributors": [
"Thiago Lugli <thiagoelg@gmail.com>",
"Eko Eryanto <ekoeryanto@gmail.com>",
"Francimar Alves <mazinsw@gmail.com>"
],
"license": "MIT"
"resolutions": {
"node-gyp": "^9.4.0"
},
"overrides": {
"node-gyp": "^9.4.0"
},
"scripts": {
"apply-patches": "patch-package",
"install": "prebuild-install || node-gyp rebuild",
"prebuild": "prebuild",
"rebuild": "node-gyp rebuild",
"test": "nodeunit test"
},
"types": "types/index.d.ts"
}
15 changes: 8 additions & 7 deletions patches/node-abi+3.24.0.patch → patches/node-abi+3.47.0.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/node_modules/node-abi/abi_registry.json b/node_modules/node-abi/abi_registry.json
index f4f1bf7..41bd3d0 100644
index ed55679..bce4775 100644
--- a/node_modules/node-abi/abi_registry.json
+++ b/node_modules/node-abi/abi_registry.json
@@ -52,7 +52,7 @@
Expand All @@ -11,11 +11,10 @@ index f4f1bf7..41bd3d0 100644
"lts": false,
"future": false,
"abi": "102"
@@ -199,19 +199,5 @@
"lts": false,
@@ -217,20 +217,6 @@
"runtime": "electron",
"target": "19.0.0-alpha.1"
- },
},
- {
- "abi": "107",
- "future": false,
Expand All @@ -25,9 +24,11 @@ index f4f1bf7..41bd3d0 100644
- },
- {
- "abi": "109",
- "future": true,
- "future": false,
- "lts": false,
- "runtime": "electron",
- "target": "21.0.0-alpha.1"
}
]
- },
{
"abi": "110",
"future": false,