@lokalise/events-common
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,3 +0,3 @@ | ||
import type { ZodObject, ZodTypeAny } from 'zod'; | ||
import z from 'zod'; | ||
import { ZodObject, ZodTypeAny, default as z } from 'zod'; | ||
export declare const BASE_EVENT_SCHEMA: ZodObject<{ | ||
@@ -4,0 +4,0 @@ id: z.ZodString; |
@@ -6,10 +6,10 @@ import e from "zod"; | ||
timestamp: e.string().datetime().describe("iso 8601 datetime"), | ||
source: e.string().nonempty().describe("source service of the event"), | ||
source: e.string().min(1).describe("source service of the event"), | ||
payload: e.optional(e.object({})).describe("event payload based on type"), | ||
metadata: e.object({ | ||
schemaVersion: e.string().nonempty().describe("base event schema version"), | ||
originalApp: e.string().nonempty().describe("app/service initiated workflow") | ||
schemaVersion: e.string().min(1).describe("base event schema version"), | ||
originalApp: e.string().min(1).describe("app/service initiated workflow") | ||
}).describe("event metadata"), | ||
correlationId: e.string().uuid().describe("unique identifier passed to all events in workflow chain"), | ||
version: e.string().nonempty().describe("event payload version") | ||
correlationId: e.string().describe("unique identifier passed to all events in workflow chain"), | ||
version: e.string().min(1).describe("event payload version") | ||
}); | ||
@@ -16,0 +16,0 @@ export { |
{ | ||
"name": "@lokalise/events-common", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"files": [ | ||
"dist" | ||
], | ||
"license": "Apache-2.0", | ||
"type": "module", | ||
@@ -29,21 +30,22 @@ "module": "./dist/index.js", | ||
"lint:fix": "eslint . --fix && prettier --write src test \"**/*.{json,md}\"", | ||
"test": "vitest run --coverage", | ||
"pretest:ci": "cross-env NODE_ENV=test npm run build", | ||
"prepublishOnly": "npm run build" | ||
"test:ci": "vitest run --coverage", | ||
"prepublishOnly": "npm run build", | ||
"package-version": "echo $npm_package_version" | ||
}, | ||
"peerDependencies": { | ||
"zod": "^3.22.0" | ||
"zod": "^3.23.8" | ||
}, | ||
"devDependencies": { | ||
"@lokalise/eslint-config": "*", | ||
"@lokalise/prettier-config": "*", | ||
"@lokalise/vite-config": "*", | ||
"@message-queue-toolkit/sns": "^5.0.0", | ||
"prettier": "3.1.0", | ||
"rimraf": "^5.0.1", | ||
"typescript": "5.2.2", | ||
"vite": "^4.4.11", | ||
"vitest": "0.34.6" | ||
"@lokalise/eslint-config": "latest", | ||
"@lokalise/prettier-config": "latest", | ||
"@lokalise/package-vite-config": "latest", | ||
"@message-queue-toolkit/sns": "^16.0.0", | ||
"@vitest/coverage-v8": "^1.6.0", | ||
"prettier": "3.3.2", | ||
"rimraf": "^5.0.7", | ||
"typescript": "5.4.5", | ||
"vite": "^5.3.2", | ||
"vitest": "1.6.0" | ||
}, | ||
"prettier": "@lokalise/prettier-config" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance 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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
10946
13
0
10
82
1