multi-version nodejs-colors for nodejs-cli-table

Piotr Popieluch piotr1212 at gmail.com
Tue Feb 24 08:15:08 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/24/2015 02:58 AM, Dan Callaghan wrote:
> Excerpts from Piotr Popieluch's message of 2015-02-21 01:37
> +10:00:
>> nodejs-replace-0:0.3.0-2.fc21.noarch: npm(colors)
> 
> nodejs-replace works fine with the newer colors, no updates are
> needed.
> 
> I suspect all the other dependent packages just need %nodejs_fixdep
> to clear the version requirements. From a quick look at the git
> history for colors, I think the API in 1.0.3 is backwards
> compatible.
> 

I did check this by running the example.js from 0.6 on the 1.0.3
library. First it fails on that colors.js is moved to the lib subdir.
When I fix this by hand it fails on a missing method  'addSequencer',
see below.




colors-1.0.3  node example.old.js
Rainbows are fun!
So are styles! inverse
Chains are also cool.
hopefully colorless output
a b
Zebras are so fun!
background color attack!
This is not fun.
Rainbows are fun!
So are styles! inverse
Chains are also cool.
hopefully colorless output
a b

/home/piotr/rpmbuild/SOURCES/colors-1.0.3/example.old.js:27
colors.addSequencer("america", function(letter, i, exploded) {
       ^
TypeError: Object #<Object> has no method 'addSequencer'
    at Object.<anonymous>
(/home/piotr/rpmbuild/SOURCES/colors-1.0.3/example.old.js:27:8)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJU7DMMAAoJEPHEApzE46n59SEQAJcD3P+LLS2hQvjq7yRidxYP
XKgrTk5J0TPPuFMXgfyqRi/20upcwYx6olJYhlmZIZSaCWQiREOrggjWbq+/I6v6
JfzSWO6MlKZWG3b6PlirnHjB+boTmKeGXA1+p/C5gnMtZbeHYwz0PU7mLGnh4zhQ
Md27NcUgm4LqrcgjfU6YY5iYWIUrD1csmwFepWe3ZqOOuWpfQQaM9HroAKiefKid
bhPHNbcieSxxgZvLDf5exnDkRjhQ9uE9B44PxA0ajVw9ttMJsoj6nDEGmFDDRHkh
ZIHfk7hFaMFDDV7mpPsP93PSEHDWgw1JOOb6uIHbCUqlrIwI12u6odwYkfYbj1r5
pfEirv/T2wPhcudn6ZloO1KKUomJ/XYA/Zyand2bUXjr8TMSL27fHxRdEVSKHIhD
WaU2Uje9OBtKtiLSiYoBxrC+obAukGzrcB3cy36PS3JSNvQNWn3HFywUHLf0LH4d
vRwKP8OgS3BC0CU4e6vcCoNN2UlJGUINYxTtYR/wTHjC9EPvSXw7qrnzuEFkmRRG
BeiQ+2qlhfLCQSripsPRgr7B1uNCjSNtiX3hTQpBRa6fGu0RJiq2SX81li5awUmC
B9MMpwHug4f+2ZwIl2eOEhec2G7/H52mQ25e01roPDEVJGPEKRpuBRresely3Rv9
pBcgClYtW1ime0WndkqH
=D6AM
-----END PGP SIGNATURE-----


More information about the nodejs mailing list