Socket
Socket
Sign inDemoInstall

@grammarly/editor-sdk

Package Overview
Dependencies
Maintainers
7
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grammarly/editor-sdk - npm Package Compare versions

Comparing version 1.0.0-alpha.2 to 1.0.0-alpha.3

5

lib/index.esm.js

@@ -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);

6

package.json

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc