MCPcopy Create free account
hub / github.com/decaporg/decap-cms / constructor

Method constructor

packages/decap-cms-lib-util/src/API.ts:31–40  ·  view source on GitHub ↗
(message: string, resetSeconds: number)

Source from the content-addressed store, hash-verified

29 resetSeconds: number;
30
31 constructor(message: string, resetSeconds: number) {
32 super(message);
33 if (resetSeconds < 0) {
34 this.resetSeconds = 1;
35 } else if (resetSeconds > 60 * 60) {
36 this.resetSeconds = 60 * 60;
37 } else {
38 this.resetSeconds = resetSeconds;
39 }
40 }
41}
42
43async function parseJsonResponse(response: Response) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected