PHP 8.1.33
Preview: index.js Size: 302 B
//lib/node_modules/npm/node_modules/p-finally/index.js

'use strict';
module.exports = (promise, onFinally) => {
	onFinally = onFinally || (() => {});

	return promise.then(
		val => new Promise(resolve => {
			resolve(onFinally());
		}).then(() => val),
		err => new Promise(resolve => {
			resolve(onFinally());
		}).then(() => {
			throw err;
		})
	);
};

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
302 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
1.09 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
1.64 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
949 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).