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