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.1 to 1.0.0-alpha.2

3

lib/index.esm.js

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

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