diff --git a/package-lock.json b/package-lock.json index fd042a1..9866ec6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@schascha/brabbelback", - "version": "0.7.0", + "version": "0.8.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@schascha/brabbelback", - "version": "0.7.0", + "version": "0.8.0", "license": "MIT", "devDependencies": { "@babel/preset-env": "^7.23.9", diff --git a/package.json b/package.json index f469a08..3dc1534 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@schascha/brabbelback", - "version": "0.7.0", + "version": "0.8.0", "description": "Just some JS utils", "main": "index.js", "keywords": [ diff --git a/src/inject.ts b/src/inject.ts index b2702b0..96a351b 100644 --- a/src/inject.ts +++ b/src/inject.ts @@ -4,7 +4,7 @@ * @returns {Promise} A promise that resolves when the script has been injected */ -export function injectScript(src: string) { +export function injectScript(src: string): Promise { return new Promise((resolve, reject) => { if (document.querySelector(`script[src="${src}"]`)) { return resolve;