Socket
Socket
Sign inDemoInstall

@jimp/core

Package Overview
Dependencies
Maintainers
2
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/core - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1--canary.8356674.0

16

dist/commonjs/index.js

@@ -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");

2

dist/esm/index.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc