@akashic/game-configuration
Advanced tools
Comparing version 1.11.1 to 1.12.0
@@ -20,4 +20,3 @@ "use strict"; | ||
__exportStar(require("./utils"), exports); | ||
// extractAssetPathsモジュールはutils以下の他のモジュールとは無関係なのでここでexportしない | ||
// utils 以下の他のモジュールと無関係のなのモジュールはここで export しない | ||
// TODO: utils以下にディレクトリを切って、関係のあるモジュール毎にまとめる | ||
// export * from "./extractAssetPaths"; |
@@ -127,2 +127,2 @@ "use strict"; | ||
PathUtil.splitPath = splitPath; | ||
})(PathUtil = exports.PathUtil || (exports.PathUtil = {})); | ||
})(PathUtil || (exports.PathUtil = PathUtil = {})); |
@@ -0,1 +1,2 @@ | ||
import type { AssetConfiguration, AssetConfigurationMap } from "../AssetConfiguration"; | ||
import type { NormalizedGameConfiguration } from "../GameConfiguration"; | ||
@@ -6,2 +7,9 @@ import type { LoadGameConfigurationFunc } from "./types"; | ||
/** | ||
* アセット定義のマップを配列に変換する。 | ||
* @param assets アセット定義のマップ | ||
*/ | ||
export declare function toAssetArray(assets: AssetConfigurationMap): (AssetConfiguration & { | ||
id: string; | ||
})[]; | ||
/** | ||
* 与えられたオブジェクト二つを「マージ」する。 | ||
@@ -8,0 +16,0 @@ * ここでマージとは、オブジェクトのフィールドをイテレートし、 |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._mergeObject = exports.makeLoadConfigurationFunc = void 0; | ||
exports._mergeObject = exports.toAssetArray = exports.makeLoadConfigurationFunc = void 0; | ||
var es6_promise_1 = require("es6-promise"); | ||
@@ -47,2 +58,12 @@ var PathUtil_1 = require("./PathUtil"); | ||
/** | ||
* アセット定義のマップを配列に変換する。 | ||
* @param assets アセット定義のマップ | ||
*/ | ||
function toAssetArray(assets) { | ||
return Object.keys(assets).map(function (assetId) { | ||
return __assign({ id: assetId }, assets[assetId]); | ||
}); | ||
} | ||
exports.toAssetArray = toAssetArray; | ||
/** | ||
* 与えられたオブジェクト二つを「マージ」する。 | ||
@@ -49,0 +70,0 @@ * ここでマージとは、オブジェクトのフィールドをイテレートし、 |
{ | ||
"name": "@akashic/game-configuration", | ||
"version": "1.11.1", | ||
"version": "1.12.0", | ||
"description": "Type definitions and utilities for game.json, the manifest file for Akashic Engine.", | ||
@@ -89,3 +89,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@akashic/pdi-types": "^1.10.0" | ||
"@akashic/pdi-types": "^1.11.1" | ||
}, | ||
@@ -98,16 +98,16 @@ "optionalDependencies": { | ||
"@akashic/remark-preset-lint": "^0.1.2", | ||
"@types/jest": "^29.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.30.6", | ||
"@types/jest": "^29.5.2", | ||
"@typescript-eslint/eslint-plugin": "^5.60.0", | ||
"deepcopy": "^2.1.0", | ||
"eslint": "^8.19.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^27.0.0", | ||
"jest": "^29.0.0", | ||
"eslint": "^8.43.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-jest": "^27.2.2", | ||
"jest": "^29.5.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.7.1", | ||
"prettier": "^2.8.8", | ||
"remark-cli": "^11.0.0", | ||
"rimraf": "^4.0.0", | ||
"ts-jest": "^29.0.0", | ||
"typescript": "^5.0.0" | ||
"rimraf": "^5.0.1", | ||
"ts-jest": "^29.1.0", | ||
"typescript": "^5.1.3" | ||
}, | ||
@@ -114,0 +114,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37802
23
840
Updated@akashic/pdi-types@^1.11.1