@constl/mandataire
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -49,5 +49,5 @@ import type TypedEmitter from "typed-emitter"; | ||
recevoirMessageDIpa(message: MessageDIpa): Promise<void>; | ||
suivreErreurs({ f }: { | ||
suivreErreurs({ f, }: { | ||
f: (x: ErreurMandataire | undefined) => void; | ||
}): () => TypedEmitter<ÉvénementsMandataire>; | ||
}): types.schémaFonctionOublier; | ||
} | ||
@@ -54,0 +54,0 @@ export type MandataireConstellation<T> = Required<T> & Mandatairifiable; |
@@ -202,6 +202,8 @@ import { v4 as uuidv4 } from "uuid"; | ||
// Fonctions publiques | ||
suivreErreurs({ f }) { | ||
suivreErreurs({ f, }) { | ||
this.événements.on("erreur", f); | ||
f(this.dernièreErreur); | ||
return () => this.événements.off("erreur", f); | ||
return async () => { | ||
this.événements.off("erreur", f); | ||
}; | ||
} | ||
@@ -208,0 +210,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export declare const version = "3.0.1"; | ||
export declare const version = "3.0.2"; |
// Generated by genversion. | ||
export const version = "3.0.1"; | ||
export const version = "3.0.2"; | ||
//# sourceMappingURL=version.js.map |
@@ -166,5 +166,5 @@ import { mandataire } from "@constl/ipa"; | ||
idsMotsClefs: [], | ||
})).to.be.rejectedWith("accès.estAutorisé"); | ||
})).to.be.rejectedWith("non valide"); | ||
}); | ||
}); | ||
//# sourceMappingURL=mandataire.spec.js.map |
{ | ||
"name": "@constl/mandataire", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Un mandataire très léger pour le client Constellation.", | ||
@@ -23,31 +23,31 @@ "author": "Julien Jean Malard-Adam", | ||
"devDependencies": { | ||
"@constl/ipa": "^1.1.1", | ||
"@constl/orbit-db-types": "^2.0.0", | ||
"@constl/utils-ipa": "^1.0.1", | ||
"@constl/utils-tests": "^1.2.7", | ||
"@eslint/js": "^9.6.0", | ||
"@constl/ipa": "^1.2.1", | ||
"@constl/orbit-db-types": "^2.0.1", | ||
"@constl/utils-ipa": "^1.0.3", | ||
"@constl/utils-tests": "^1.4.2", | ||
"@eslint/js": "^9.9.1", | ||
"@orbitdb/core": "^2.2.0", | ||
"@types/mocha": "^10.0.7", | ||
"@types/uuid": "^10.0.0", | ||
"@typescript-eslint/eslint-plugin": "^7.15.0", | ||
"@typescript-eslint/parser": "^7.15.0", | ||
"aegir": "^44.0.1", | ||
"@typescript-eslint/eslint-plugin": "^8.3.0", | ||
"@typescript-eslint/parser": "^8.3.0", | ||
"aegir": "^44.1.1", | ||
"browserify-fs": "^1.0.0", | ||
"buffer": "^6.0.3", | ||
"crypto-browserify": "^3.12.0", | ||
"electron": "^31.1.0", | ||
"eslint": "^9.6.0", | ||
"electron": "^31.4.0", | ||
"eslint": "^9.9.1", | ||
"eslint-config-prettier": "^9.1.0", | ||
"genversion": "^3.2.0", | ||
"mocha": "^10.5.2", | ||
"mocha": "^10.7.3", | ||
"os-browserify": "^0.3.0", | ||
"prettier": "^3.3.2", | ||
"prettier": "^3.3.3", | ||
"process": "^0.11.10", | ||
"rimraf": "^5.0.7", | ||
"rimraf": "^6.0.1", | ||
"ts-patch": "^3.2.1", | ||
"typed-emitter": "^2.1.0", | ||
"typescript": "^5.5.3", | ||
"typescript-eslint": "^7.15.0", | ||
"typescript-transform-paths": "^3.4.7", | ||
"url": "^0.11.3", | ||
"typescript": "^5.5.4", | ||
"typescript-eslint": "^8.3.0", | ||
"typescript-transform-paths": "^3.5.0", | ||
"url": "^0.11.4", | ||
"wherearewe": "^2.0.1" | ||
@@ -54,0 +54,0 @@ }, |
@@ -310,6 +310,12 @@ import type TypedEmitter from "typed-emitter"; | ||
// Fonctions publiques | ||
suivreErreurs({ f }: { f: (x: ErreurMandataire | undefined) => void }) { | ||
suivreErreurs({ | ||
f, | ||
}: { | ||
f: (x: ErreurMandataire | undefined) => void; | ||
}): types.schémaFonctionOublier { | ||
this.événements.on("erreur", f); | ||
f(this.dernièreErreur); | ||
return () => this.événements.off("erreur", f); | ||
return async () => { | ||
this.événements.off("erreur", f); | ||
}; | ||
} | ||
@@ -316,0 +322,0 @@ } |
// Generated by genversion. | ||
export const version = "3.0.1"; | ||
export const version = "3.0.2"; |
@@ -230,4 +230,4 @@ import type { MessageDIpa, MessagePourIpa } from "@/messages.js"; | ||
}), | ||
).to.be.rejectedWith("accès.estAutorisé"); | ||
).to.be.rejectedWith("non valide"); | ||
}); | ||
}); |
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
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
1267
218101