@heybox/hb-sdk-protocol 0.9.3-alpha.3 → 0.9.3-alpha.5
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.cjs.js +2 -4
- package/dist/index.esm.js +2 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1822,9 +1822,7 @@ function isMiniProgramNativeHostDescription(value) {
|
|
|
1822
1822
|
!isRecord(value.operations))
|
|
1823
1823
|
return false;
|
|
1824
1824
|
const operations = value.operations;
|
|
1825
|
-
if (!isOperationList(operations.system) ||
|
|
1826
|
-
!isOperationList(operations.network) ||
|
|
1827
|
-
!isOperationList(operations.files))
|
|
1825
|
+
if (!isOperationList(operations.system) || !isOperationList(operations.network) || !isOperationList(operations.files))
|
|
1828
1826
|
return false;
|
|
1829
1827
|
return operations.system.includes('describe');
|
|
1830
1828
|
}
|
|
@@ -1849,7 +1847,7 @@ function isPositiveSafeInteger(value) {
|
|
|
1849
1847
|
}
|
|
1850
1848
|
function isOperationList(value) {
|
|
1851
1849
|
return (Array.isArray(value) &&
|
|
1852
|
-
value.every(operation => isNonEmptyString(operation) && operation === operation.trim()) &&
|
|
1850
|
+
value.every((operation) => isNonEmptyString(operation) && operation === operation.trim()) &&
|
|
1853
1851
|
new Set(value).size === value.length);
|
|
1854
1852
|
}
|
|
1855
1853
|
|
package/dist/index.esm.js
CHANGED
|
@@ -1820,9 +1820,7 @@ function isMiniProgramNativeHostDescription(value) {
|
|
|
1820
1820
|
!isRecord(value.operations))
|
|
1821
1821
|
return false;
|
|
1822
1822
|
const operations = value.operations;
|
|
1823
|
-
if (!isOperationList(operations.system) ||
|
|
1824
|
-
!isOperationList(operations.network) ||
|
|
1825
|
-
!isOperationList(operations.files))
|
|
1823
|
+
if (!isOperationList(operations.system) || !isOperationList(operations.network) || !isOperationList(operations.files))
|
|
1826
1824
|
return false;
|
|
1827
1825
|
return operations.system.includes('describe');
|
|
1828
1826
|
}
|
|
@@ -1847,7 +1845,7 @@ function isPositiveSafeInteger(value) {
|
|
|
1847
1845
|
}
|
|
1848
1846
|
function isOperationList(value) {
|
|
1849
1847
|
return (Array.isArray(value) &&
|
|
1850
|
-
value.every(operation => isNonEmptyString(operation) && operation === operation.trim()) &&
|
|
1848
|
+
value.every((operation) => isNonEmptyString(operation) && operation === operation.trim()) &&
|
|
1851
1849
|
new Set(value).size === value.length);
|
|
1852
1850
|
}
|
|
1853
1851
|
|