diff --git a/config.ts b/config.ts index 5a9e196..04c3070 100644 --- a/config.ts +++ b/config.ts @@ -3,6 +3,7 @@ type DevMode = "PRODUCTION" | "DEVELOPMENT"; const DEV_MODE: DevMode = "PRODUCTION"; const CONFIG_INNER = { + PRODUCT_NAME: "CodeBud", DOMAIN: "unitap.online", MAIN_URL: "https://unitap.online", BASE_URL: 'https://unitap.online/api', diff --git a/index.ts b/index.ts index 8be26dc..c30befd 100644 --- a/index.ts +++ b/index.ts @@ -4,6 +4,7 @@ import { MODULE_STATES } from './States'; import { EXISTING_SPECIAL_INSTRUCTION_IDS } from './constants/events'; import { validateApiKey } from './constants/regex'; import { AppKlaarSdk as ModuleInterface } from './moduleInterface'; +import { CONFIG } from './config'; export type { Instruction } from './types'; @@ -15,7 +16,7 @@ export const CodeBud: ModuleInterface = { init(apiKey, instructions, config) { if (this._currentState === "WORKING") { - console.warn("Sdk already initiated!"); + console.warn(`${CONFIG.PRODUCT_NAME} already initiated!`); return; } @@ -97,13 +98,13 @@ export const CodeBud: ModuleInterface = { if (this._connector) this._connector.refreshRemoteSettings(callbackFn); else - console.warn("Sdk not initiated."); + console.warn(`${CONFIG.PRODUCT_NAME} not initiated.`); }, createReduxStoreChangeHandler(store, selectFn, batchingTimeMs = 500) { try { if (!this._connector) - throw new Error('Something went wrong while creating ReduxStoreChangeHandler. Double check that you initialized sdk'); + throw new Error(`Something went wrong while creating ReduxStoreChangeHandler. Double check that you initialized ${CONFIG.PRODUCT_NAME}`); return this._connector.createReduxStoreChangeHandler(store, selectFn, batchingTimeMs); } catch (e) { diff --git a/package.json b/package.json index b2821cc..df92b7a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@appklaar/codebud", "version": "1.0.0", "private": false, - "description": "App Klaar package for remote app testing & debugging", + "description": "CodeBud - AppKlaar's package for remote app testing & debugging", "main": "index.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", @@ -37,9 +37,6 @@ "@types/react": "^18.0.28", "@typescript-eslint/eslint-plugin": "^5.55.0", "@typescript-eslint/parser": "^5.55.0", - "react-native": "^0.71.4", - "tweetnacl": "^1.0.3", - "tweetnacl-util": "^0.15.1", "typescript": "^4.9.5" }, "peerDependencies": { @@ -68,11 +65,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/Appklaar/AppKlaarSDK.git" + "url": "git+https://github.com/Appklaar/CodeBud.git" }, "license": "ISC", "bugs": { - "url": "https://github.com/Appklaar/AppKlaarSDK/issues" + "url": "https://github.com/Appklaar/CodeBud/issues" }, - "homepage": "https://github.com/Appklaar/AppKlaarSDK#readme" + "homepage": "https://github.com/Appklaar/CodeBud#readme" }