Comparing version 2.2.0 to 3.0.0
@@ -29,5 +29,5 @@ | ||
for (var i = 0; i < max; i++) { | ||
if ((aArr[i] && !bArr[i]) || aArr[i] > bArr[i]) { | ||
if ((aArr[i] && !bArr[i]) || +aArr[i] > +bArr[i]) { | ||
return 1; | ||
} else if ((!aArr[i] && bArr[i]) || aArr[i] < bArr[i]) { | ||
} else if ((!aArr[i] && bArr[i]) || +aArr[i] < +bArr[i]) { | ||
return -1; | ||
@@ -34,0 +34,0 @@ } |
28
index.js
@@ -0,1 +1,29 @@ | ||
/* | ||
* Index.js | ||
* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2013 ZhangYuanwei <zhangyuanwei1988@gmail.com> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a | ||
* copy of this software and associated documentation files (the | ||
* "Software"), to deal in the Software without restriction, including | ||
* without limitation the rights to use, copy, modify, merge, publish, | ||
* distribute, sub license, and/or sell copies of the Software, and to | ||
* permit persons to whom the Software is furnished to do so, subject to | ||
* the following conditions: | ||
* | ||
* The above copyright notice and this permission notice (including the | ||
* next paragraph) shall be included in all copies or substantial portions | ||
* of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. | ||
* IN NO EVENT SHALL INTEL AND/OR ITS SUPPLIERS BE LIABLE FOR | ||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
var USE_OLD_API = false, | ||
@@ -2,0 +30,0 @@ fs = require("fs"), |
@@ -0,1 +1,29 @@ | ||
/* | ||
* install.js | ||
* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2013 ZhangYuanwei <zhangyuanwei1988@gmail.com> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a | ||
* copy of this software and associated documentation files (the | ||
* "Software"), to deal in the Software without restriction, including | ||
* without limitation the rights to use, copy, modify, merge, publish, | ||
* distribute, sub license, and/or sell copies of the Software, and to | ||
* permit persons to whom the Software is furnished to do so, subject to | ||
* the following conditions: | ||
* | ||
* The above copyright notice and this permission notice (including the | ||
* next paragraph) shall be included in all copies or substantial portions | ||
* of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. | ||
* IN NO EVENT SHALL INTEL AND/OR ITS SUPPLIERS BE LIABLE FOR | ||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
/** | ||
@@ -2,0 +30,0 @@ * This script will be excuted while npm installing this package. |
{ | ||
"name": "images", | ||
"version": "2.2.0", | ||
"version": "3.0.0", | ||
"description": "Cross-platform image decoder(png/jpeg/gif) and encoder(png/jpeg) for Node.js", | ||
@@ -23,2 +23,10 @@ "main": "index.js", | ||
"4.99.99" | ||
], | ||
"5.0.0": [ | ||
"5.0.0", | ||
"5.99.99" | ||
], | ||
"6.0.0": [ | ||
"6.0.0", | ||
"6.99.99" | ||
] | ||
@@ -52,3 +60,6 @@ }, | ||
"step": "0.0.5" | ||
}, | ||
"dependencies": { | ||
"nan": "^2.3.2" | ||
} | ||
} |
@@ -32,8 +32,2 @@ ![images logo](https://raw.github.com/zhangyuanwei/node-images/master/demo/logo.png) | ||
You will also need to install: | ||
+ giflib 4.x.x | ||
+ libpng 1.5.x | ||
+ jpeg-turbo 1.x.x | ||
## API 接口 | ||
@@ -40,0 +34,0 @@ |
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
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 13 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 23 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 7 instances in 1 package
0
100
35
21821240
1
52
525
127
+ Addednan@^2.3.2
+ Addednan@2.22.0(transitive)