@spiffcommerce/core 14.8.0 → 14.8.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -1156,6 +1156,14 @@ declare class AssetService implements AssetManager {
1156
1156
  * Allows for retrieving an asset, returns the option from a cache if possible.
1157
1157
  */
1158
1158
  getLocalOrFromServer(assetKey: string): Promise<_Asset1>;
1159
+ /**
1160
+ * Caches an asset if it doesn't already exist.
1161
+ */
1162
+ cacheAsset(asset: _Asset1): void;
1163
+ /**
1164
+ * Caches a material if it doesn't already exist.
1165
+ */
1166
+ cacheMaterial(material: MaterialResource): void;
1159
1167
  /**
1160
1168
  * Allows for retrieving amaterial, returns the option from a cache if possible.
1161
1169
  * @param id The option ID to be retrieved.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "14.8.0",
3
+ "version": "14.8.2-beta.0",
4
4
  "description": "Core client API for interacting with the Spiff Commerce backend.",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",