UNPKG

zland-core

Version:
46 lines (39 loc) 1.09 kB
/*! * Copyright 2015 Florian Biewald * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @filedescription defer object for compatibility reasons. * use the newer new Promise constructor of bluebird */ /** * @deprecated */ 'use strict'; var Promise; Promise = require('bluebird'); module.exports = function() { var promise, reject, resolve; resolve = void 0; reject = void 0; promise = new Promise(function() { resolve = arguments[0]; reject = arguments[1]; }); return { resolve: resolve, reject: reject, promise: promise }; };