@jimp/core
Advanced tools
Comparing version 1.1.0 to 1.1.1--canary.8356674.0
@@ -13,14 +13,2 @@ "use strict"; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
@@ -37,3 +25,3 @@ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
const utils_1 = require("@jimp/utils"); | ||
const fileType = __importStar(require("file-type/core.js")); | ||
const core_js_1 = __importDefault(require("file-type/core.js")); | ||
const await_to_js_1 = require("await-to-js"); | ||
@@ -198,3 +186,3 @@ const file_ops_1 = require("@jimp/file-ops"); | ||
const actualBuffer = buffer instanceof ArrayBuffer ? bufferFromArrayBuffer(buffer) : buffer; | ||
const mime = await fileType.fromBuffer(actualBuffer); | ||
const mime = await core_js_1.default.fromBuffer(actualBuffer); | ||
if (!mime || !mime.mime) { | ||
@@ -201,0 +189,0 @@ throw new Error("Could not find MIME for Buffer"); |
import { Edge } from "@jimp/types"; | ||
import { cssColorToHex, scan, scanIterator } from "@jimp/utils"; | ||
import * as fileType from "file-type/core.js"; | ||
import fileType from "file-type/core.js"; | ||
import { to } from "await-to-js"; | ||
@@ -5,0 +5,0 @@ import { existsSync, readFile, writeFile } from "@jimp/file-ops"; |
{ | ||
"name": "@jimp/core", | ||
"version": "1.1.0", | ||
"version": "1.1.1--canary.8356674.0", | ||
"repository": "jimp-dev/jimp", | ||
@@ -15,5 +15,5 @@ "scripts": { | ||
"dependencies": { | ||
"@jimp/file-ops": "1.1.0", | ||
"@jimp/types": "1.1.0", | ||
"@jimp/utils": "1.1.0", | ||
"@jimp/file-ops": "1.1.1--canary.8356674.0", | ||
"@jimp/types": "1.1.1--canary.8356674.0", | ||
"@jimp/utils": "1.1.1--canary.8356674.0", | ||
"await-to-js": "^3.0.0", | ||
@@ -25,5 +25,5 @@ "exif-parser": "^0.1.12", | ||
"devDependencies": { | ||
"@jimp/config-eslint": "1.1.0", | ||
"@jimp/config-typescript": "1.1.0", | ||
"@jimp/test-utils": "1.1.0", | ||
"@jimp/config-eslint": "1.1.1--canary.8356674.0", | ||
"@jimp/config-typescript": "1.1.1--canary.8356674.0", | ||
"@jimp/test-utils": "1.1.1--canary.8356674.0", | ||
"@types/file-type": "^10.9.1", | ||
@@ -67,3 +67,3 @@ "@types/mime": "^3.0.4", | ||
"module": "./dist/esm/index.js", | ||
"gitHead": "887b0cb53fe5b8d545c8cda82a3db5ef90f18136" | ||
"gitHead": "8356674e4a0c8ea7e0ee83483e809b2937f77edb" | ||
} |
import { Bitmap, Format, JimpClass, Edge } from "@jimp/types"; | ||
import { cssColorToHex, scan, scanIterator } from "@jimp/utils"; | ||
import * as fileType from "file-type/core.js"; | ||
import fileType from "file-type/core.js"; | ||
import { to } from "await-to-js"; | ||
@@ -5,0 +5,0 @@ import { existsSync, readFile, writeFile } from "@jimp/file-ops"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
363003
7420
2
+ Added@jimp/file-ops@1.1.1--canary.8356674.0(transitive)
+ Added@jimp/types@1.1.1--canary.8356674.0(transitive)
+ Added@jimp/utils@1.1.1--canary.8356674.0(transitive)
- Removed@jimp/file-ops@1.1.0(transitive)
- Removed@jimp/types@1.1.0(transitive)
- Removed@jimp/utils@1.1.0(transitive)