idosell 0.3.20 → 0.4.1

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.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import ENUMS from "./enums.js";
2
2
  import { gateProxy } from "./gates.js";
3
3
  const DEFAULT_VERSION = 6;
4
- const idosell = (url, apiKey = "", version = DEFAULT_VERSION) => {
5
- const auth = { url, apiKey, version, apikey: apiKey.slice(0, 6) + '*'.repeat(20) };
4
+ const idosell = (url, apiKey, version = DEFAULT_VERSION) => {
5
+ const auth = { url, apiKey, version, apikey: apiKey ? apiKey.slice(0, 6) + '*'.repeat(20) : "" };
6
6
  Object.defineProperty(auth, 'apiKey', { enumerable: false });
7
7
  const element = { auth, params: {} };
8
8
  return new Proxy(element, gateProxy);
@@ -1,5 +1,6 @@
1
1
  import { paramsProxy } from "../params.js";
2
2
  export default (object) => {
3
3
  object.gate = { method: 'get', node: '/entries/entries' };
4
+ object.req = ["entryId", "langId"];
4
5
  return new Proxy(object, paramsProxy);
5
6
  };