@ryuu-reinzz/haruka-lib 2.0.0 → 2.0.1
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.
- package/main/sticker-engine/java-script/Sticker.js +4 -4
- package/main/sticker-engine/java-script/index.js +7 -7
- package/main/sticker-engine/java-script/internal/Metadata/Exif.js +1 -1
- package/main/sticker-engine/java-script/internal/Metadata/RawMetadata.js +1 -1
- package/main/sticker-engine/java-script/internal/Metadata/StickerMetadata.js +1 -1
- package/main/sticker-engine/java-script/internal/convert.js +4 -4
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { existsSync, readFile, writeFile } from 'fs-extra';
|
|
2
2
|
import axios from 'axios';
|
|
3
|
-
import Utils, { defaultBg } from './Utils';
|
|
3
|
+
import Utils, { defaultBg } from './Utils.js';
|
|
4
4
|
import { fromBuffer } from 'file-type';
|
|
5
|
-
import convert from './internal/convert';
|
|
6
|
-
import Exif from './internal/Metadata/Exif';
|
|
7
|
-
import { StickerTypes } from './internal/Metadata/StickerTypes';
|
|
5
|
+
import convert from './internal/convert.js';
|
|
6
|
+
import Exif from './internal/Metadata/Exif.js';
|
|
7
|
+
import { StickerTypes } from './internal/Metadata/StickerTypes.js';
|
|
8
8
|
import { extractMetadata } from '.';
|
|
9
9
|
/**
|
|
10
10
|
* Sticker class
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Sticker } from './Sticker';
|
|
2
|
-
export * from './Sticker';
|
|
3
|
-
export * from './extractMetadata';
|
|
4
|
-
export * from './Types';
|
|
5
|
-
export { default as StickerMetadata } from './internal/Metadata/StickerMetadata';
|
|
6
|
-
export { default as Exif } from './internal/Metadata/Exif';
|
|
7
|
-
export * from './internal/Metadata/StickerTypes';
|
|
1
|
+
import { Sticker } from './Sticker.js';
|
|
2
|
+
export * from './Sticker.js';
|
|
3
|
+
export * from './extractMetadata.js';
|
|
4
|
+
export * from './Types.js';
|
|
5
|
+
export { default as StickerMetadata } from './internal/Metadata/StickerMetadata.js';
|
|
6
|
+
export { default as Exif } from './internal/Metadata/Exif.js';
|
|
7
|
+
export * from './internal/Metadata/StickerTypes.js';
|
|
8
8
|
export default Sticker;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import sharp, { fit } from 'sharp';
|
|
2
|
-
import videoToGif from './videoToGif';
|
|
2
|
+
import videoToGif from './videoToGif.js';
|
|
3
3
|
import { writeFile } from 'fs-extra';
|
|
4
4
|
import { tmpdir } from 'os';
|
|
5
|
-
import crop from './crop';
|
|
6
|
-
import { StickerTypes } from './Metadata/StickerTypes';
|
|
7
|
-
import { defaultBg } from '../Utils';
|
|
5
|
+
import crop from './crop.js';
|
|
6
|
+
import { StickerTypes } from './Metadata/StickerTypes.js';
|
|
7
|
+
import { defaultBg } from '../Utils.js';
|
|
8
8
|
const convert = async (data, mime, { quality = 100, background = defaultBg, type = StickerTypes.DEFAULT }) => {
|
|
9
9
|
const isVideo = mime.startsWith('video');
|
|
10
10
|
let image = isVideo ? await videoToGif(data) : data;
|