@sonarwatch/portfolio-core 0.5.25 → 0.5.26
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/utils/getCollectiblesFromAssets.d.ts +2 -0
- package/src/utils/{getCollectiblessfromAssets.js → getCollectiblesFromAssets.js} +4 -4
- package/src/utils/getCollectiblesFromAssets.js.map +1 -0
- package/src/utils/index.d.ts +1 -1
- package/src/utils/index.js +1 -1
- package/src/utils/index.js.map +1 -1
- package/src/utils/getCollectiblessfromAssets.d.ts +0 -2
- package/src/utils/getCollectiblessfromAssets.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.5.26](https://github.com/sonarwatch/portfolio/compare/core-0.5.25...core-0.5.26) (2023-08-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.5.25](https://github.com/sonarwatch/portfolio/compare/core-0.5.24...core-0.5.25) (2023-08-10)
|
|
6
10
|
|
|
7
11
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getCollectiblesFromAssets = void 0;
|
|
4
4
|
const Portfolio_1 = require("../Portfolio");
|
|
5
|
-
function
|
|
5
|
+
function getCollectiblesFromAssets(assets) {
|
|
6
6
|
return assets.filter((asset) => asset.type === Portfolio_1.PortfolioAssetType.collectible);
|
|
7
7
|
}
|
|
8
|
-
exports.
|
|
9
|
-
//# sourceMappingURL=
|
|
8
|
+
exports.getCollectiblesFromAssets = getCollectiblesFromAssets;
|
|
9
|
+
//# sourceMappingURL=getCollectiblesFromAssets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCollectiblesFromAssets.js","sourceRoot":"","sources":["../../../../../packages/core/src/utils/getCollectiblesFromAssets.ts"],"names":[],"mappings":";;;AAAA,4CAIsB;AAEtB,SAAgB,yBAAyB,CACvC,MAAwB;IAExB,OAAO,MAAM,CAAC,MAAM,CAClB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,8BAAkB,CAAC,WAAW,CAC1B,CAAC;AACnC,CAAC;AAND,8DAMC"}
|
package/src/utils/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export * from './formatUniTokenInfo';
|
|
|
15
15
|
export * from './getAddressSystemFromNetworkId';
|
|
16
16
|
export * from './getAssetsFromElement';
|
|
17
17
|
export * from './getAssetsFromElements';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './getCollectiblesFromAssets';
|
|
19
19
|
export * from './getUsdValueSum';
|
|
20
20
|
export * from './getUsdValueSumStrict';
|
|
21
21
|
export * from './mergePortfolioElementMultiples';
|
package/src/utils/index.js
CHANGED
|
@@ -31,7 +31,7 @@ __exportStar(require("./formatUniTokenInfo"), exports);
|
|
|
31
31
|
__exportStar(require("./getAddressSystemFromNetworkId"), exports);
|
|
32
32
|
__exportStar(require("./getAssetsFromElement"), exports);
|
|
33
33
|
__exportStar(require("./getAssetsFromElements"), exports);
|
|
34
|
-
__exportStar(require("./
|
|
34
|
+
__exportStar(require("./getCollectiblesFromAssets"), exports);
|
|
35
35
|
__exportStar(require("./getUsdValueSum"), exports);
|
|
36
36
|
__exportStar(require("./getUsdValueSumStrict"), exports);
|
|
37
37
|
__exportStar(require("./mergePortfolioElementMultiples"), exports);
|
package/src/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/core/src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B;AAC/B,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,4DAA0C;AAC1C,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,+DAA6C;AAC7C,2DAAyC;AACzC,uDAAqC;AACrC,kEAAgD;AAChD,yDAAuC;AACvC,0DAAwC;AACxC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/core/src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B;AAC/B,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,4DAA0C;AAC1C,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,+DAA6C;AAC7C,2DAAyC;AACzC,uDAAqC;AACrC,kEAAgD;AAChD,yDAAuC;AACvC,0DAAwC;AACxC,8DAA4C;AAC5C,mDAAiC;AACjC,yDAAuC;AACvC,mEAAiD;AACjD,yDAAuC;AACvC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,uDAAqC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCollectiblessfromAssets.js","sourceRoot":"","sources":["../../../../../packages/core/src/utils/getCollectiblessfromAssets.ts"],"names":[],"mappings":";;;AAAA,4CAIsB;AAEtB,SAAgB,0BAA0B,CACxC,MAAwB;IAExB,OAAO,MAAM,CAAC,MAAM,CAClB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,8BAAkB,CAAC,WAAW,CAC1B,CAAC;AACnC,CAAC;AAND,gEAMC"}
|