mirror of
				https://git.coolaj86.com/coolaj86/greenlock-store-fs.js.git
				synced 2025-11-04 02:52:47 +00:00 
			
		
		
		
	v1.0.2: burn a few more logs
This commit is contained in:
		
							parent
							
								
									f5118ae9d1
								
							
						
					
					
						commit
						3230c31138
					
				
							
								
								
									
										4
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								index.js
									
									
									
									
									
								
							@ -148,7 +148,7 @@ module.exports.create = function (config) {
 | 
				
			|||||||
  // On Error: Promise.reject(new Error("something descriptive for the user"))
 | 
					  // On Error: Promise.reject(new Error("something descriptive for the user"))
 | 
				
			||||||
  store.accounts.checkKeypairAsync = function (opts) {
 | 
					  store.accounts.checkKeypairAsync = function (opts) {
 | 
				
			||||||
    var id = opts.account.id || 'single-user';
 | 
					    var id = opts.account.id || 'single-user';
 | 
				
			||||||
    console.log('accounts.checkKeypairAsync for', id);
 | 
					    //console.log('accounts.checkKeypairAsync for', id);
 | 
				
			||||||
    if (!opts.account.id) { return PromiseA.reject(new Error("'account.id' should have been set in approveDomains()")); }
 | 
					    if (!opts.account.id) { return PromiseA.reject(new Error("'account.id' should have been set in approveDomains()")); }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var pathname = path.join(tameWild(opts.accountsDir, opts.subject), sanitizeFilename(id) + '.json');
 | 
					    var pathname = path.join(tameWild(opts.accountsDir, opts.subject), sanitizeFilename(id) + '.json');
 | 
				
			||||||
@ -170,7 +170,7 @@ module.exports.create = function (config) {
 | 
				
			|||||||
  // On Error: Promise.reject(new Error("something descriptive for the user"))
 | 
					  // On Error: Promise.reject(new Error("something descriptive for the user"))
 | 
				
			||||||
  store.accounts.setKeypairAsync = function (opts, keypair) {
 | 
					  store.accounts.setKeypairAsync = function (opts, keypair) {
 | 
				
			||||||
    var id = opts.account.id || 'single-user';
 | 
					    var id = opts.account.id || 'single-user';
 | 
				
			||||||
    console.log('accounts.setKeypairAsync for', id);
 | 
					    //console.log('accounts.setKeypairAsync for', id);
 | 
				
			||||||
    keypair = opts.keypair || keypair;
 | 
					    keypair = opts.keypair || keypair;
 | 
				
			||||||
    if (!opts.account.id) { return PromiseA.reject(new Error("'account.id' should have been set in approveDomains()")); }
 | 
					    if (!opts.account.id) { return PromiseA.reject(new Error("'account.id' should have been set in approveDomains()")); }
 | 
				
			||||||
    return mkdirpAsync(tameWild(opts.accountsDir, opts.subject)).then(function () {
 | 
					    return mkdirpAsync(tameWild(opts.accountsDir, opts.subject)).then(function () {
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "le-store-fs",
 | 
					  "name": "le-store-fs",
 | 
				
			||||||
  "version": "1.0.1",
 | 
					  "version": "1.0.2",
 | 
				
			||||||
  "description": "A file-based certificate store for greenlock that supports wildcards.",
 | 
					  "description": "A file-based certificate store for greenlock that supports wildcards.",
 | 
				
			||||||
  "homepage": "https://git.coolaj86.com/coolaj86/le-store-fs.js",
 | 
					  "homepage": "https://git.coolaj86.com/coolaj86/le-store-fs.js",
 | 
				
			||||||
  "main": "index.js",
 | 
					  "main": "index.js",
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user