@bucketco/react-sdk
Advanced tools
Comparing version 1.0.0-alpha.0 to 1.0.0-alpha.1
@@ -139,5 +139,2 @@ "use strict"; | ||
const flag = flags.flags[key]; | ||
if (!flags.isLoading && flag === undefined) { | ||
console.error(`[Bucket SDK] The feature flag "${key}" was not found`); | ||
} | ||
const value = (_a = flag === null || flag === void 0 ? void 0 : flag.value) !== null && _a !== void 0 ? _a : null; | ||
@@ -144,0 +141,0 @@ return { isLoading: flags.isLoading, value: value }; |
@@ -73,3 +73,3 @@ import React, { ReactNode } from "react"; | ||
isLoading: boolean; | ||
value: boolean | null; | ||
value: boolean; | ||
}; |
@@ -73,3 +73,3 @@ import React, { ReactNode } from "react"; | ||
isLoading: boolean; | ||
value: boolean | null; | ||
value: boolean; | ||
}; |
{ | ||
"name": "@bucketco/react-sdk", | ||
"version": "1.0.0-alpha.0", | ||
"version": "1.0.0-alpha.1", | ||
"license": "MIT", | ||
@@ -16,3 +16,3 @@ "repository": { | ||
"test": "vitest -c vite.config.js", | ||
"test:ci": "vitest run -c vite.config.js --reporter=junit --outputFile=junit.xml", | ||
"test:ci": "vitest run -c vite.config.js --reporter=default --reporter=junit --outputFile=junit.xml", | ||
"coverage": "vitest run --coverage", | ||
@@ -31,3 +31,3 @@ "lint": "eslint .", | ||
"dependencies": { | ||
"@bucketco/tracking-sdk": "2.3.1", | ||
"@bucketco/tracking-sdk": "2.3.2", | ||
"canonical-json": "^0.0.4" | ||
@@ -59,3 +59,3 @@ }, | ||
}, | ||
"gitHead": "3d5b0cd5bfee65256588f9e480ab244f40329a9c" | ||
"gitHead": "2c540d489d5e5a1c0524aa90ad3951a99df37a1b" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
257359
293
+ Added@bucketco/tracking-sdk@2.3.2(transitive)
- Removed@bucketco/tracking-sdk@2.3.1(transitive)
Updated@bucketco/tracking-sdk@2.3.2