@napi-rs/image 1.6.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +2 -5
  2. package/index.js +7 -1
  3. package/package.json +15 -15
package/README.md CHANGED
@@ -427,18 +427,15 @@ export const enum ResizeFilterType {
427
427
  */
428
428
  overlay(onTop: Buffer, x: number, y: number): this
429
429
  ```
430
+
430
431
  ```ts
431
432
  import { writeFileSync } from 'fs'
432
433
 
433
434
  import { Transformer } from '@napi-rs/image'
434
435
 
435
-
436
436
  const imageOutputPng = await new Transformer(PNG).overlay(PNG, 200, 200).png()
437
437
 
438
- writeFileSync(
439
- 'output-overlay-png.png',
440
- imageOutputPng
441
- )
438
+ writeFileSync('output-overlay-png.png', imageOutputPng)
442
439
  ```
443
440
 
444
441
  **ResizeFilterType**:
package/index.js CHANGED
@@ -1,3 +1,9 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /* prettier-ignore */
4
+
5
+ /* auto-generated by NAPI-RS */
6
+
1
7
  const { existsSync, readFileSync } = require('fs')
2
8
  const { join } = require('path')
3
9
 
@@ -11,7 +17,7 @@ function isMusl() {
11
17
  // For Node 10
12
18
  if (!process.report || typeof process.report.getReport !== 'function') {
13
19
  try {
14
- const lddPath = require('child_process').execSync('which ldd').toString().trim();
20
+ const lddPath = require('child_process').execSync('which ldd').toString().trim()
15
21
  return readFileSync(lddPath, 'utf8').includes('musl')
16
22
  } catch (e) {
17
23
  return true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napi-rs/image",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "description": "Image processing library",
@@ -62,21 +62,21 @@
62
62
  },
63
63
  "repository": "git@github.com:Brooooooklyn/Image.git",
64
64
  "devDependencies": {
65
- "@napi-rs/cli": "^2.14.3"
65
+ "@napi-rs/cli": "^2.16.2"
66
66
  },
67
- "gitHead": "b1afb10512e889b5bcea32a1b35aea382dc1eb31",
67
+ "gitHead": "f79ed56b4a1e56f236bc0ca84e1edb8222f6cf56",
68
68
  "optionalDependencies": {
69
- "@napi-rs/image-win32-x64-msvc": "1.6.1",
70
- "@napi-rs/image-darwin-x64": "1.6.1",
71
- "@napi-rs/image-linux-x64-gnu": "1.6.1",
72
- "@napi-rs/image-darwin-arm64": "1.6.1",
73
- "@napi-rs/image-android-arm64": "1.6.1",
74
- "@napi-rs/image-linux-arm64-gnu": "1.6.1",
75
- "@napi-rs/image-linux-arm64-musl": "1.6.1",
76
- "@napi-rs/image-linux-arm-gnueabihf": "1.6.1",
77
- "@napi-rs/image-linux-x64-musl": "1.6.1",
78
- "@napi-rs/image-freebsd-x64": "1.6.1",
79
- "@napi-rs/image-win32-ia32-msvc": "1.6.1",
80
- "@napi-rs/image-android-arm-eabi": "1.6.1"
69
+ "@napi-rs/image-win32-x64-msvc": "1.7.0",
70
+ "@napi-rs/image-darwin-x64": "1.7.0",
71
+ "@napi-rs/image-linux-x64-gnu": "1.7.0",
72
+ "@napi-rs/image-darwin-arm64": "1.7.0",
73
+ "@napi-rs/image-android-arm64": "1.7.0",
74
+ "@napi-rs/image-linux-arm64-gnu": "1.7.0",
75
+ "@napi-rs/image-linux-arm64-musl": "1.7.0",
76
+ "@napi-rs/image-linux-arm-gnueabihf": "1.7.0",
77
+ "@napi-rs/image-linux-x64-musl": "1.7.0",
78
+ "@napi-rs/image-freebsd-x64": "1.7.0",
79
+ "@napi-rs/image-win32-ia32-msvc": "1.7.0",
80
+ "@napi-rs/image-android-arm-eabi": "1.7.0"
81
81
  }
82
82
  }