emblem-vault-sdk 1.4.1 → 1.4.2
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/bundle.js +6 -1
- package/docs/bundle.js +6 -1
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/readme.md +1 -0
- package/src/index.ts +6 -1
package/dist/bundle.js
CHANGED
|
@@ -684255,8 +684255,13 @@ class EmblemVaultSDK {
|
|
|
684255
684255
|
// Map over the sorted data and generate a template for each item
|
|
684256
684256
|
.map((item) => {
|
|
684257
684257
|
const template = (0, utils_1.generateTemplate)(item);
|
|
684258
|
+
Object.keys(template).forEach(key => {
|
|
684259
|
+
if (key != 'id' && key != 'created_at' && key != 'contracts' && key != 'imageHandler' && key != 'placeholderImages' && key != 'loadingImages')
|
|
684260
|
+
item[key] = template[key];
|
|
684261
|
+
});
|
|
684258
684262
|
// Return a new object that combines the properties of the item and the template
|
|
684259
|
-
return
|
|
684263
|
+
// return { ...item, ...template };
|
|
684264
|
+
return item;
|
|
684260
684265
|
});
|
|
684261
684266
|
return data;
|
|
684262
684267
|
});
|
package/docs/bundle.js
CHANGED
|
@@ -684255,8 +684255,13 @@ class EmblemVaultSDK {
|
|
|
684255
684255
|
// Map over the sorted data and generate a template for each item
|
|
684256
684256
|
.map((item) => {
|
|
684257
684257
|
const template = (0, utils_1.generateTemplate)(item);
|
|
684258
|
+
Object.keys(template).forEach(key => {
|
|
684259
|
+
if (key != 'id' && key != 'created_at' && key != 'contracts' && key != 'imageHandler' && key != 'placeholderImages' && key != 'loadingImages')
|
|
684260
|
+
item[key] = template[key];
|
|
684261
|
+
});
|
|
684258
684262
|
// Return a new object that combines the properties of the item and the template
|
|
684259
|
-
return
|
|
684263
|
+
// return { ...item, ...template };
|
|
684264
|
+
return item;
|
|
684260
684265
|
});
|
|
684261
684266
|
return data;
|
|
684262
684267
|
});
|
package/docs/index.html
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
function generateDropdown(curatedContracts) {
|
|
27
27
|
const selectElement = function () { return document.getElementById('contractSelect') }
|
|
28
28
|
let hide = document.getElementById('hideNotMintableCheckbox').checked
|
|
29
|
-
while (selectElement().firstChild) {
|
|
29
|
+
while (selectElement().firstChild) {
|
|
30
30
|
selectElement().removeChild(selectElement().firstChild);
|
|
31
31
|
}
|
|
32
32
|
const defaultOptionElement = document.createElement('option');
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,7 @@ npm i emblem-vault-sdk
|
|
|
11
11
|
## Getting Started
|
|
12
12
|
```
|
|
13
13
|
const EmblemVaultSDK = require('emblem-vault-sdk');
|
|
14
|
+
// import EmblemVaultSDK from 'emblem-vault-sdk'
|
|
14
15
|
const apiKey = 'YOUR_API_KEY'; // replace with your actual API key
|
|
15
16
|
|
|
16
17
|
const sdk = new EmblemVaultSDK(apiKey);
|
package/src/index.ts
CHANGED
|
@@ -49,8 +49,13 @@ class EmblemVaultSDK {
|
|
|
49
49
|
// Map over the sorted data and generate a template for each item
|
|
50
50
|
.map((item: any) => {
|
|
51
51
|
const template = generateTemplate(item);
|
|
52
|
+
Object.keys(template).forEach(key => {
|
|
53
|
+
if (key != 'id' && key != 'created_at' && key != 'contracts' && key != 'imageHandler' && key != 'placeholderImages' && key != 'loadingImages' )
|
|
54
|
+
item[key] = template[key];
|
|
55
|
+
});
|
|
52
56
|
// Return a new object that combines the properties of the item and the template
|
|
53
|
-
return { ...item, ...template };
|
|
57
|
+
// return { ...item, ...template };
|
|
58
|
+
return item;
|
|
54
59
|
});
|
|
55
60
|
return data
|
|
56
61
|
}
|