@jimp/jpeg
Advanced tools
Comparing version 0.8.6-canary.815.488.0 to 0.8.6-canary.818.495.0
"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
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
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
160725
4
184
+ Added@jimp/utils@0.8.6-canary.818.495.0(transitive)
- Removed@babel/runtime@^7.7.2
- Removed@babel/runtime@7.26.0(transitive)
- Removed@jimp/utils@0.8.6-canary.815.488.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)