sprotty-protocol
Advanced tools
Comparing version 0.15.0-next.25ffc24.11 to 0.15.0-next.28dc7b8.23
{ | ||
"name": "sprotty-protocol", | ||
"version": "0.15.0-next.25ffc24.11+25ffc24", | ||
"version": "0.15.0-next.28dc7b8.23+28dc7b8", | ||
"description": "TypeScript declarations for Sprotty to be used both in browser and Node.js context", | ||
@@ -14,32 +14,17 @@ "license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)", | ||
], | ||
"homepage": "https://github.com/eclipse/sprotty", | ||
"bugs": "https://github.com/eclipse/sprotty/issues", | ||
"homepage": "https://github.com/eclipse-sprotty/sprotty", | ||
"bugs": "https://github.com/eclipse-sprotty/sprotty/issues", | ||
"author": { | ||
"name": "Eclipse Sprotty" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Miro Spönemann", | ||
"email": "miro.spoenemann@typefox.io", | ||
"url": "https://www.typefox.io" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/eclipse/sprotty", | ||
"url": "https://github.com/eclipse-sprotty/sprotty", | ||
"directory": "packages/sprotty-protocol" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "^10.0.2", | ||
"chai": "^4.3.10", | ||
"mocha": "^10.2.0", | ||
"ts-mocha": "^10.0.0" | ||
}, | ||
"scripts": { | ||
"prepare": "yarn run clean && yarn run build", | ||
"clean": "rimraf lib artifacts", | ||
"build": "tsc -p ./tsconfig.json && yarn run lint", | ||
"watch": "tsc -w -p ./tsconfig.json", | ||
"lint": "eslint -c ../../configs/.eslintrc.js \"src/**/!(*.spec.ts*)\"", | ||
"test": "ts-mocha \"./src/**/*.spec.?(ts|tsx)\"" | ||
"clean": "shx rm -fr lib artifacts *.tsbuildinfo", | ||
"build": "tsc", | ||
"watch": "tsc --watch", | ||
"test": "vitest run --config ../../vite.config.ts" | ||
}, | ||
@@ -52,6 +37,3 @@ "files": [ | ||
"types": "lib/index", | ||
"eslintIgnore": [ | ||
"src/**/*.spec.?(ts|tsx)" | ||
], | ||
"gitHead": "25ffc249802253321da5084994280ed44229804d" | ||
"gitHead": "28dc7b89cd6a7f450847b2a1a09b8409016950af" | ||
} |
@@ -17,4 +17,3 @@ /******************************************************************************** | ||
import 'mocha'; | ||
import { expect } from 'chai'; | ||
import { expect, describe, it } from 'vitest'; | ||
import { Action, ComputedBoundsAction, RequestBoundsAction, RequestModelAction, SetModelAction } from './actions'; | ||
@@ -38,3 +37,3 @@ import { DiagramServer } from './diagram-server'; | ||
} | ||
} | ||
}; | ||
next(); | ||
@@ -54,3 +53,3 @@ }); | ||
async a => { | ||
dispatched.push(a) | ||
dispatched.push(a); | ||
}, { | ||
@@ -183,5 +182,5 @@ DiagramGenerator: { | ||
const { server, actionHandlerRegistry, dispatched } = createServer(); | ||
actionHandlerRegistry.onAction('foo', (_, state, server) => { | ||
actionHandlerRegistry.onAction('foo', (_, state, serverHandler) => { | ||
state.revision = -7; | ||
server.dispatch({ kind: 'bar' }); | ||
serverHandler.dispatch({ kind: 'bar' }); | ||
return Promise.resolve(); | ||
@@ -197,5 +196,5 @@ }); | ||
const { server, actionHandlerRegistry, dispatched } = createServer(); | ||
const handler: ServerActionHandler = (_, state, server) => { | ||
const handler: ServerActionHandler = (_, state, serverHandler) => { | ||
state.revision = -7; | ||
server.dispatch({ kind: 'bar' }); | ||
serverHandler.dispatch({ kind: 'bar' }); | ||
return Promise.resolve(); | ||
@@ -202,0 +201,0 @@ }; |
@@ -17,4 +17,3 @@ /******************************************************************************** | ||
import "mocha"; | ||
import { expect } from "chai"; | ||
import { expect, describe, it } from 'vitest'; | ||
import { SModelRoot } from './model'; | ||
@@ -21,0 +20,0 @@ import { SModelIndex } from './utils/model-utils'; |
@@ -17,4 +17,3 @@ /******************************************************************************** | ||
import { Deferred } from "./async"; | ||
import "mocha"; | ||
import { expect } from "chai"; | ||
import { expect, describe, it } from 'vitest'; | ||
@@ -21,0 +20,0 @@ describe('Deferred', () => { |
@@ -17,4 +17,3 @@ /******************************************************************************** | ||
import "mocha"; | ||
import { expect } from "chai"; | ||
import { expect, describe, it } from 'vitest'; | ||
import { almostEquals, Bounds, angleBetweenPoints, Point } from "./geometry"; | ||
@@ -21,0 +20,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
0
255234
4869