Kevin Sawicki
|
472a48092d
|
Export cache for debugging purposes
|
2014-10-15 13:09:42 -07:00 |
|
Kevin Sawicki
|
20f6489232
|
Disable debug mode
|
2014-10-15 13:09:42 -07:00 |
|
Kevin Sawicki
|
2c737b8927
|
Move debug property into cache object
|
2014-10-15 13:09:42 -07:00 |
|
Kevin Sawicki
|
0df5045edb
|
Move registered property into cache object
|
2014-10-15 13:09:42 -07:00 |
|
Kevin Sawicki
|
b91c25186f
|
Use hasOwnProperty
|
2014-10-15 13:09:42 -07:00 |
|
Kevin Sawicki
|
7b8a293f30
|
Inline path to listSync call
|
2014-10-15 13:09:42 -07:00 |
|
Kevin Sawicki
|
26df31aa1f
|
💄 Group exported methods
|
2014-10-15 13:09:42 -07:00 |
|
Kevin Sawicki
|
36ff22e30a
|
generateDependencies -> create
|
2014-10-15 13:09:42 -07:00 |
|
Kevin Sawicki
|
495fa43753
|
Allow passing in metadata to ModuleCache.add
|
2014-10-15 13:09:41 -07:00 |
|
Kevin Sawicki
|
2954aacb1c
|
Ignore invalid ranges
They cannot be cache since multiple commits/branches may
map to the same version number which would lead to
unpredictable results.
|
2014-10-15 13:09:41 -07:00 |
|
Kevin Sawicki
|
1bf8f516c3
|
Cache parsed ranges
|
2014-10-15 13:09:41 -07:00 |
|
Kevin Sawicki
|
e0a84232c3
|
💄
|
2014-10-15 13:09:41 -07:00 |
|
Kevin Sawicki
|
8c204bb60e
|
Restore cache
|
2014-10-15 13:09:41 -07:00 |
|
Kevin Sawicki
|
245c77869f
|
Add require time and load count tracking
|
2014-10-15 13:09:41 -07:00 |
|
Kevin Sawicki
|
508a30efb1
|
Return when package.json can't be required
|
2014-10-15 13:09:41 -07:00 |
|
Kevin Sawicki
|
5ad54bbe92
|
Wire up cache to Module._resolveFilename
|
2014-10-15 13:09:41 -07:00 |
|
Kevin Sawicki
|
4da6513fb5
|
Add initial cache of resource path module
|
2014-10-15 13:09:41 -07:00 |
|
Kevin Sawicki
|
1154490a97
|
Store main path of module
This is the key in Module._cache
|
2014-10-15 13:09:41 -07:00 |
|
Kevin Sawicki
|
0e7e24ca6b
|
relative -> relativePath
|
2014-10-15 13:09:40 -07:00 |
|
Kevin Sawicki
|
944ac14be7
|
Make dependencies an array of objects
|
2014-10-15 13:09:40 -07:00 |
|
Kevin Sawicki
|
7aa28920cf
|
Use fs.listSync
|
2014-10-15 13:09:40 -07:00 |
|
Kevin Sawicki
|
6ce6553456
|
Add initial task to generate dependencies
|
2014-10-15 13:09:40 -07:00 |
|
Kevin Sawicki
|
b4470a14cb
|
Explicitly register cache
|
2014-10-15 13:09:40 -07:00 |
|
Kevin Sawicki
|
5b629e6b29
|
💄
|
2014-10-15 13:09:40 -07:00 |
|
Kevin Sawicki
|
7304b97547
|
Parse resource path for relativizing cache paths
|
2014-10-15 13:09:40 -07:00 |
|
Kevin Sawicki
|
f523c5eb73
|
Do hasOwnProperty check first
|
2014-10-15 13:09:40 -07:00 |
|
Kevin Sawicki
|
5981cfb8c9
|
Ignore native modules since they are already cached
|
2014-10-15 13:09:40 -07:00 |
|
Kevin Sawicki
|
d1e966349f
|
Add initial cache lookup method
|
2014-10-15 13:09:40 -07:00 |
|
Kevin Sawicki
|
dc19fa4baa
|
📝 Add a couple notes
|
2014-10-15 13:09:40 -07:00 |
|
Kevin Sawicki
|
84e90d140f
|
Wire initial module cache
|
2014-10-15 13:09:40 -07:00 |
|