@zapier/kitcore 0.19.0 → 0.20.0
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/CHANGELOG.md +53 -0
- package/README.md +45 -0
- package/dist/index.cjs +9 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +248 -59
- package/dist/index.d.ts +248 -59
- package/dist/index.mjs +9 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1898,8 +1898,9 @@ function declareOptionalMethod(config) {
|
|
|
1898
1898
|
`Plugin "${id}" is an optional stand-in (declareOptionalMethod) with no implementation. Its binding is \`undefined\` unless a real plugin is registered under this id.`
|
|
1899
1899
|
);
|
|
1900
1900
|
}
|
|
1901
|
-
// Requires nothing
|
|
1902
|
-
//
|
|
1901
|
+
// Requires nothing: a consumer that imports it still passes `createSdk`'s
|
|
1902
|
+
// completeness check unprovided. The contract is still carried, so a
|
|
1903
|
+
// provider that DOES appear under the id is checked against it. The
|
|
1903
1904
|
// `optional: true` literal drives `PluginSurface` to type the binding
|
|
1904
1905
|
// `| undefined`.
|
|
1905
1906
|
};
|
|
@@ -1949,9 +1950,12 @@ function declareOptionalProperty(config) {
|
|
|
1949
1950
|
optional: true,
|
|
1950
1951
|
imports: [],
|
|
1951
1952
|
importBindings: []
|
|
1952
|
-
// Requires nothing
|
|
1953
|
-
//
|
|
1954
|
-
//
|
|
1953
|
+
// Requires nothing: a consumer that imports it still passes `createSdk`'s
|
|
1954
|
+
// completeness check unprovided. The contract is the binding a consumer
|
|
1955
|
+
// sees, `TValue | undefined`, which is also what a by-reference provider
|
|
1956
|
+
// (`defineProperty(ref, { value })`) is allowed to pass. A consumer of an
|
|
1957
|
+
// optional reference has to handle the absent case either way, so an
|
|
1958
|
+
// explicit `undefined` breaks nothing a narrower contract would protect.
|
|
1955
1959
|
};
|
|
1956
1960
|
}
|
|
1957
1961
|
function declareDefault({
|