zapier-platform-core 17.0.1 → 17.0.2
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/index.mjs +21 -0
- package/package.json +13 -3
- package/types/schemas.generated.d.ts +1 -1
package/index.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import zapier from './src/index.js';
|
|
2
|
+
import packageJson from './package.json' with { type: 'json' };
|
|
3
|
+
import _tools from './src/tools/exported.js';
|
|
4
|
+
zapier.version = packageJson.version;
|
|
5
|
+
zapier.tools = _tools;
|
|
6
|
+
// Allows `import { ... } from 'zapier-platform-core'`
|
|
7
|
+
export const {
|
|
8
|
+
createAppHandler,
|
|
9
|
+
createAppTester,
|
|
10
|
+
defineApp,
|
|
11
|
+
defineCreate,
|
|
12
|
+
defineInputField,
|
|
13
|
+
defineInputFields,
|
|
14
|
+
defineSearch,
|
|
15
|
+
defineTrigger,
|
|
16
|
+
integrationTestHandler,
|
|
17
|
+
tools,
|
|
18
|
+
version,
|
|
19
|
+
} = zapier;
|
|
20
|
+
// Allows `import zapier from 'zapier-platform-core'`
|
|
21
|
+
export default zapier;
|
package/package.json
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zapier-platform-core",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.2",
|
|
4
4
|
"description": "The core SDK for CLI apps in the Zapier Developer Platform.",
|
|
5
5
|
"repository": "zapier/zapier-platform",
|
|
6
6
|
"homepage": "https://platform.zapier.com/",
|
|
7
7
|
"author": "Zapier Engineering <contact@zapier.com>",
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE",
|
|
9
|
-
"main": "index.js",
|
|
10
9
|
"types": "types/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"require": "./index.js",
|
|
13
|
+
"import": "./index.mjs",
|
|
14
|
+
"types": "./types/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./src/*": {
|
|
17
|
+
"require": "./src/*.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
11
20
|
"files": [
|
|
12
21
|
"/include/",
|
|
13
22
|
"/index.js",
|
|
23
|
+
"/index.mjs",
|
|
14
24
|
"/src/",
|
|
15
25
|
"/types/"
|
|
16
26
|
],
|
|
@@ -52,7 +62,7 @@
|
|
|
52
62
|
"node-fetch": "2.7.0",
|
|
53
63
|
"oauth-sign": "0.9.0",
|
|
54
64
|
"semver": "7.7.1",
|
|
55
|
-
"zapier-platform-schema": "17.0.
|
|
65
|
+
"zapier-platform-schema": "17.0.2"
|
|
56
66
|
},
|
|
57
67
|
"devDependencies": {
|
|
58
68
|
"@types/node-fetch": "^2.6.11",
|