@akashic/game-configuration
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -15,3 +15,2 @@ "use strict"; | ||
exports._mergeObject = exports.toAssetArray = exports.makeLoadConfigurationFunc = void 0; | ||
var es6_promise_1 = require("es6-promise"); | ||
var PathUtil_1 = require("./PathUtil"); | ||
@@ -45,3 +44,3 @@ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type | ||
}); | ||
es6_promise_1.Promise.all(defs) | ||
Promise.all(defs) | ||
.then(function (confs) { return callback(null, confs.reduce(_mergeObject)); }) | ||
@@ -52,3 +51,3 @@ .catch(function (e) { return callback(e); }); | ||
function promisifiedLoad(url, assetBase, cascadeBase) { | ||
return new es6_promise_1.Promise(function (resolve, reject) { | ||
return new Promise(function (resolve, reject) { | ||
loadResolvedConfiguration(url, assetBase, cascadeBase, function (err, conf) { return (err ? reject(err) : resolve(conf)); }); | ||
@@ -55,0 +54,0 @@ }); |
{ | ||
"name": "@akashic/game-configuration", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Type definitions and utilities for game.json, the manifest file for Akashic Engine.", | ||
@@ -91,5 +91,2 @@ "main": "lib/index.js", | ||
}, | ||
"optionalDependencies": { | ||
"es6-promise": "^4.2.8" | ||
}, | ||
"devDependencies": { | ||
@@ -96,0 +93,0 @@ "@akashic/eslint-config": "^1.1.1", |
@@ -40,4 +40,2 @@ <p align="center"> | ||
`utils.makeLoadConfigurationFunc()` を利用する場合、`es6-promise` を別途インストールする必要があります。 | ||
```javascript | ||
@@ -44,0 +42,0 @@ var utils = require("@akashic/game-configuration/lib/utils"); |
1
37958
844
62