@grammarly/editor-sdk
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
@@ -54,2 +54,3 @@ function findScript(url) { | ||
} | ||
const [versionMajor, versionMinor] = "1.0.0-alpha.2".split("."); | ||
/** | ||
@@ -61,3 +62,3 @@ * Initialize Grammarly. | ||
async function init(clientId) { | ||
const Grammarly = await loadScript(`${"./grammarly-editor-sdk.js" }`, clientId); | ||
const Grammarly = await loadScript(`${`https://js.grammarly.com/editor-sdk@${versionMajor}.${versionMinor}`}`, clientId); | ||
if (clientId != null) { | ||
@@ -64,0 +65,0 @@ return new Grammarly.EditorFactory(clientId); |
@@ -58,2 +58,3 @@ 'use strict'; | ||
} | ||
const [versionMajor, versionMinor] = "1.0.0-alpha.2".split("."); | ||
/** | ||
@@ -65,3 +66,3 @@ * Initialize Grammarly. | ||
async function init(clientId) { | ||
const Grammarly = await loadScript(`${"./grammarly-editor-sdk.js" }`, clientId); | ||
const Grammarly = await loadScript(`${`https://js.grammarly.com/editor-sdk@${versionMajor}.${versionMinor}`}`, clientId); | ||
if (clientId != null) { | ||
@@ -68,0 +69,0 @@ return new Grammarly.EditorFactory(clientId); |
@@ -5,3 +5,3 @@ { | ||
"description": "Grammarly writing SDK for web editors", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"main": "lib/index.js", | ||
@@ -29,4 +29,4 @@ "module": "lib/index.esm.js", | ||
"devDependencies": { | ||
"@grammarly/plugin-core": "1.0.0-alpha.1", | ||
"@grammarly/plugin-editor": "1.0.0-alpha.1", | ||
"@grammarly/plugin-core": "1.0.0-alpha.2", | ||
"@grammarly/plugin-editor": "1.0.0-alpha.2", | ||
"@microsoft/api-extractor": "^7.13.0", | ||
@@ -33,0 +33,0 @@ "@types/jest": "^26.0.22", |
11049
332