Comparing version 2.0.0 to 3.0.0
16
index.js
@@ -0,1 +1,4 @@ | ||
// Copyright 2015 Lovell Fuller and others. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
'use strict'; | ||
@@ -11,3 +14,4 @@ | ||
0x04200000: '4.2', | ||
0x04300000: '4.3' | ||
0x04300000: '4.3', | ||
0x04400000: '4.4' | ||
}; | ||
@@ -44,3 +48,4 @@ | ||
dmdd: 'deviceModelDescription', | ||
vued: 'viewingConditionsDescription' | ||
vued: 'viewingConditionsDescription', | ||
wtpt: 'whitepoint' | ||
}; | ||
@@ -139,2 +144,9 @@ | ||
} | ||
if (tagType === 'XYZ') { | ||
profile[tagMap[tagSignature]] = [ | ||
buffer.readInt32BE(tagOffset + 8) / 65536, | ||
buffer.readInt32BE(tagOffset + 12) / 65536, | ||
buffer.readInt32BE(tagOffset + 16) / 65536 | ||
]; | ||
} | ||
} | ||
@@ -141,0 +153,0 @@ tagHeaderOffset = tagHeaderOffset + 12; |
{ | ||
"name": "icc", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"author": "Lovell Fuller <npm@lovell.info>", | ||
"description": "Parse International Color Consortium (ICC) profiles", | ||
"scripts": { | ||
"test": "semistandard && nyc mocha" | ||
"test": "semistandard && nyc mocha && tsd" | ||
}, | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -14,2 +15,5 @@ "type": "git", | ||
}, | ||
"files": [ | ||
"index.d.ts" | ||
], | ||
"keywords": [ | ||
@@ -22,9 +26,11 @@ "icc", | ||
"devDependencies": { | ||
"mocha": "^8.0.1", | ||
"@types/node": "*", | ||
"mocha": "^10.2.0", | ||
"nyc": "^15.1.0", | ||
"semistandard": "^14.2.2" | ||
"semistandard": "^16.0.1", | ||
"tsd": "^0.28.0" | ||
}, | ||
"license": "Apache-2.0", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=14" | ||
}, | ||
@@ -39,6 +45,9 @@ "semistandard": { | ||
"statements": 95, | ||
"branches": 84, | ||
"branches": 85, | ||
"functions": 100, | ||
"lines": 94 | ||
}, | ||
"tsd": { | ||
"directory": "test" | ||
} | ||
} |
@@ -38,3 +38,3 @@ # icc | ||
Copyright 2015, 2017, 2020 Lovell Fuller | ||
Copyright 2015 Lovell Fuller and others | ||
@@ -41,0 +41,0 @@ Licensed under the Apache License, Version 2.0 (the "License"); |
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
19546
5
168
5