@supernova-studio/model 1.40.9 → 1.40.10
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/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1057,6 +1057,11 @@ function hasProperty(prop) {
|
|
|
1057
1057
|
return obj[prop] !== null && obj[prop] !== void 0;
|
|
1058
1058
|
};
|
|
1059
1059
|
}
|
|
1060
|
+
function hasTruthyProperty(prop) {
|
|
1061
|
+
return (obj) => {
|
|
1062
|
+
return !!obj[prop];
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1060
1065
|
function chunkedArray(array, chunkSize) {
|
|
1061
1066
|
const result = [];
|
|
1062
1067
|
for (let i = 0; i < array.length; i += chunkSize) {
|
|
@@ -7450,6 +7455,7 @@ export {
|
|
|
7450
7455
|
getFigmaRenderFormatFileExtension,
|
|
7451
7456
|
groupBy,
|
|
7452
7457
|
hasProperty,
|
|
7458
|
+
hasTruthyProperty,
|
|
7453
7459
|
isDataSourceOfType,
|
|
7454
7460
|
isDesignTokenImportModelOfType,
|
|
7455
7461
|
isDesignTokenOfType,
|