New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@slate-collaborate/types

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slate-collaborate/types - npm Package Compare versions

Comparing version 0.0.23 to 0.0.24

13

dist/cjs/slate-value-type/transformOperation/mergeNodeTransformer.js

@@ -35,2 +35,15 @@ "use strict";

}
else {
let newPath = pathTransformer_1.pathTransform(operation.path, appliedOperation);
if (operation.path[operation.path.length - 1] !== 0) {
const prevPath = Path_1.Path.previous(operation.path);
if (Path_1.Path.isParent(prevPath, appliedOperation.path)) {
return [{ ...operation, path: newPath, position: operation.position + 1 }];
}
else if (Path_1.Path.equals(prevPath, appliedOperation.path)) {
return [{ ...operation, path: newPath, position: operation.position - appliedOperation.position }];
}
}
return [{ ...operation, path: newPath }];
}
}

@@ -37,0 +50,0 @@ else if (appliedOperation.type === "merge_node") {

@@ -32,2 +32,15 @@ import { Path } from "../Path";

}
else {
let newPath = pathTransform(operation.path, appliedOperation);
if (operation.path[operation.path.length - 1] !== 0) {
const prevPath = Path.previous(operation.path);
if (Path.isParent(prevPath, appliedOperation.path)) {
return [{ ...operation, path: newPath, position: operation.position + 1 }];
}
else if (Path.equals(prevPath, appliedOperation.path)) {
return [{ ...operation, path: newPath, position: operation.position - appliedOperation.position }];
}
}
return [{ ...operation, path: newPath }];
}
}

@@ -34,0 +47,0 @@ else if (appliedOperation.type === "merge_node") {

8

package.json
{
"name": "@slate-collaborate/types",
"version": "0.0.23",
"version": "0.0.24",
"main": "dist/cjs/index.js",

@@ -13,5 +13,9 @@ "types": "dist/cjs/index.d.ts",

"prepare": "npm run build",
"build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
"build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
"test": "jest"
},
"devDependencies": {
"@types/jest": "^24.9.0",
"jest": "^24.9.0",
"ts-jest": "^24.3.0",
"@types/node": "^14.0.20",

@@ -18,0 +22,0 @@ "@typescript-eslint/eslint-plugin": "^3.6.0",

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