@matvdt/js-toolkit 0.0.1-canary.10 → 0.0.1-canary.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,6 +35,7 @@ var import_react = require("react");
35
35
  var import_payload = require("payload");
36
36
  var payloadConfig;
37
37
  function configurePayload(config) {
38
+ if (payloadConfig) return;
38
39
  payloadConfig = config;
39
40
  }
40
41
  var getPayload = async (config) => {
@@ -5,6 +5,7 @@ import { cache } from "react";
5
5
  import { getPayload as getPayloadSDK } from "payload";
6
6
  var payloadConfig;
7
7
  function configurePayload(config) {
8
+ if (payloadConfig) return;
8
9
  payloadConfig = config;
9
10
  }
10
11
  var getPayload = async (config) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matvdt/js-toolkit",
3
- "version": "0.0.1-canary.10",
3
+ "version": "0.0.1-canary.11",
4
4
  "description": "JS/TS toolkit",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",