@jimp/core
Advanced tools
Comparing version 0.6.4 to 0.6.5-canary.784.118.0
@@ -490,3 +490,3 @@ "use strict"; | ||
* @param {string} path optional path to file | ||
* @param {function(Error, Jimp)} cb (optional) a callback for when complete | ||
* @param {function(Error, Jimp)} finish (optional) a callback for when complete | ||
* @memberof Jimp | ||
@@ -493,0 +493,0 @@ */ |
@@ -46,3 +46,3 @@ "use strict"; | ||
var pathParts = path.split('/').slice(-1); | ||
var extension = pathParts[pathParts.length - 1].split('.')[1]; | ||
var extension = pathParts[pathParts.length - 1].split('.').pop(); | ||
var type = findType(extension); | ||
@@ -49,0 +49,0 @@ return type[0]; |
@@ -408,3 +408,3 @@ function isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
* @param {string} path optional path to file | ||
* @param {function(Error, Jimp)} cb (optional) a callback for when complete | ||
* @param {function(Error, Jimp)} finish (optional) a callback for when complete | ||
* @memberof Jimp | ||
@@ -411,0 +411,0 @@ */ |
@@ -20,3 +20,3 @@ var mimeTypes = {}; | ||
var pathParts = path.split('/').slice(-1); | ||
var extension = pathParts[pathParts.length - 1].split('.')[1]; | ||
var extension = pathParts[pathParts.length - 1].split('.').pop(); | ||
var type = findType(extension); | ||
@@ -23,0 +23,0 @@ return type[0]; |
{ | ||
"name": "@jimp/core", | ||
"version": "0.6.4", | ||
"version": "0.6.5-canary.784.118.0", | ||
"description": "Jimp core", | ||
@@ -35,3 +35,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@jimp/utils": "^0.6.4", | ||
"@jimp/utils": "0.6.5-canary.784.118.0", | ||
"any-base": "^1.1.0", | ||
@@ -55,3 +55,3 @@ "buffer": "^5.2.0", | ||
}, | ||
"gitHead": "7c9d3c817cade88d4a20422be10670d3c1528429" | ||
"gitHead": "20a24e11c6ef9b5ff9ed731f9a2d356fb8142518" | ||
} |
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
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
376737
+ Added@jimp/utils@0.6.5-canary.784.118.0(transitive)
- Removed@jimp/utils@0.6.8(transitive)