Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jimp/jpeg

Package Overview
Dependencies
Maintainers
2
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/jpeg - npm Package Compare versions

Comparing version 0.8.6-canary.815.488.0 to 0.8.6-canary.818.495.0

14

dist/index.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
require("core-js/modules/es.object.define-property");

@@ -10,4 +10,2 @@ Object.defineProperty(exports, "__esModule", {

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _jpegJs = _interopRequireDefault(require("jpeg-js"));

@@ -17,2 +15,6 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var MIME_TYPE = 'image/jpeg';

@@ -22,8 +24,8 @@

return {
mime: (0, _defineProperty2["default"])({}, MIME_TYPE, ['jpeg', 'jpg', 'jpe']),
mime: _defineProperty({}, MIME_TYPE, ['jpeg', 'jpg', 'jpe']),
constants: {
MIME_JPEG: MIME_TYPE
},
decoders: (0, _defineProperty2["default"])({}, MIME_TYPE, _jpegJs["default"].decode),
encoders: (0, _defineProperty2["default"])({}, MIME_TYPE, function (image) {
decoders: _defineProperty({}, MIME_TYPE, _jpegJs["default"].decode),
encoders: _defineProperty({}, MIME_TYPE, function (image) {
return _jpegJs["default"].encode(image.bitmap, image._quality).data;

@@ -30,0 +32,0 @@ }),

@@ -1,2 +0,3 @@

import _defineProperty from "@babel/runtime/helpers/defineProperty";
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import JPEG from 'jpeg-js';

@@ -3,0 +4,0 @@ import { throwError, isNodePattern } from '@jimp/utils';

{
"name": "@jimp/jpeg",
"version": "0.8.6-canary.815.488.0",
"version": "0.8.6-canary.818.495.0",
"description": "Default Jimp jpeg encoder/decoder.",

@@ -23,4 +23,3 @@ "main": "dist/index.js",

"dependencies": {
"@babel/runtime": "^7.7.2",
"@jimp/utils": "0.8.6-canary.815.488.0",
"@jimp/utils": "0.8.6-canary.818.495.0",
"core-js": "^3.4.1",

@@ -33,4 +32,4 @@ "jpeg-js": "^0.3.4"

"devDependencies": {
"@jimp/custom": "0.8.6-canary.815.488.0",
"@jimp/test-utils": "0.8.6-canary.815.488.0"
"@jimp/custom": "0.8.6-canary.818.495.0",
"@jimp/test-utils": "0.8.6-canary.818.495.0"
},

@@ -40,3 +39,3 @@ "publishConfig": {

},
"gitHead": "3260b0cc7bddc7360f70248e28fdd815b7d17c8c"
"gitHead": "3b326196faede3b9d88e1e9a37305cbcba7151d8"
}

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