Skip to content

Commit

Permalink
remove schema, add zip
Browse files Browse the repository at this point in the history
  • Loading branch information
stackdump committed Feb 4, 2024
1 parent e94af59 commit 7abe0de
Show file tree
Hide file tree
Showing 14 changed files with 163 additions and 68 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ stream.d.ts
stream.js
stream.js.map
test.svg
zip.d.ts
zip.js
zip.js.map
5 changes: 1 addition & 4 deletions model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export enum ModelType {
}

export interface PetriNet {
schema: string;
roles: Map<string, RoleDef>;
places: Map<string, Place>;
transitions: Map<string, Transition>;
Expand Down Expand Up @@ -161,16 +160,14 @@ export type ModelDeclaration = {
};

export interface ModelOptions {
schema: string;
declaration?: DeclarationFunction | ModelDeclaration;
type?: ModelType;
}

export function newModel({schema, declaration, type}: ModelOptions): Model {
export function newModel({declaration, type}: ModelOptions): Model {
const arcs = Array<Arc>();

const def = {
schema,
roles: new Map<string, RoleDef>(),
places: new Map<string, Place>(),
transitions: new Map<string, Transition>(),
Expand Down
111 changes: 77 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "@pflow-dev/metamodel",
"version": "0.10.0",
"version": "0.11.0",
"main": "/index.js",
"types": "/index.d.ts",
"description": "create workflows and petriNets with a DSL",
"description": "Create wf-nets and Petri-nets with js, ts, or json",
"files": [
"index.ts",
"model.ts",
"snapshot.ts",
"stream.ts",
"zip.ts",
"model.js.map",
"model.js",
"model.d.ts",
Expand All @@ -20,7 +21,10 @@
"stream.d.ts",
"index.js.map",
"index.js",
"index.d.ts"
"index.d.ts",
"zip.js.map",
"zip.js",
"zip.d.ts"
],
"repository": {
"type": "git",
Expand Down Expand Up @@ -52,5 +56,8 @@
"jest": "^26.1.0",
"ts-jest": "^26.1.1",
"typescript": "^4.9.4"
},
"dependencies": {
"jszip": "^3.10.1"
}
}
Loading

0 comments on commit 7abe0de

Please sign in to comment.