aimyapi 0.1.7 → 0.1.9
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 +1 -1
- package/lib/index.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/lib/index.ts
CHANGED
|
@@ -125,7 +125,7 @@ async function createWithAPI(options:AIMyAPIOptions): Promise<CreateWithAPIExpor
|
|
|
125
125
|
apiWhitelist: Object.getOwnPropertyNames(Object.getPrototypeOf(options.apiObject)).filter((f) => f !== "constructor" && !f.startsWith("_")),
|
|
126
126
|
debug: false,
|
|
127
127
|
...options
|
|
128
|
-
};
|
|
128
|
+
} as AIMyAPIOptions;
|
|
129
129
|
|
|
130
130
|
if(!options.apiObject || !options.apiDefFilePath) {
|
|
131
131
|
throw new Error("apiObject and apiFilePath are required");
|
|
@@ -166,7 +166,7 @@ async function createWithAPI(options:AIMyAPIOptions): Promise<CreateWithAPIExpor
|
|
|
166
166
|
...apiGlobals,
|
|
167
167
|
[apiGlobalName]: {
|
|
168
168
|
value: apiObject,
|
|
169
|
-
apiWhitelist
|
|
169
|
+
whitelist: apiWhitelist
|
|
170
170
|
}
|
|
171
171
|
}, options.debug);
|
|
172
172
|
|