@bayoudhi/moose-lib-serverless 0.1.1 → 0.1.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/dist/serverless.js +29 -10
- package/dist/serverless.js.map +1 -1
- package/dist/serverless.mjs +35 -11
- package/dist/serverless.mjs.map +1 -1
- package/package.json +1 -1
package/dist/serverless.js
CHANGED
|
@@ -331,12 +331,18 @@ function addJsExtensionToImports(content, fileDir) {
|
|
|
331
331
|
result = result.replace(fromPattern, (match, prefix, importPath, quote) => {
|
|
332
332
|
return rewriteImportPath(match, prefix, importPath, quote, fileDir);
|
|
333
333
|
});
|
|
334
|
-
result = result.replace(
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
334
|
+
result = result.replace(
|
|
335
|
+
bareImportPattern,
|
|
336
|
+
(match, prefix, importPath, quote) => {
|
|
337
|
+
return rewriteImportPath(match, prefix, importPath, quote, fileDir);
|
|
338
|
+
}
|
|
339
|
+
);
|
|
340
|
+
result = result.replace(
|
|
341
|
+
dynamicPattern,
|
|
342
|
+
(match, prefix, importPath, quote) => {
|
|
343
|
+
return rewriteImportPath(match, prefix, importPath, quote, fileDir);
|
|
344
|
+
}
|
|
345
|
+
);
|
|
340
346
|
return result;
|
|
341
347
|
}
|
|
342
348
|
function rewriteImportPath(match, prefix, importPath, quote, fileDir) {
|
|
@@ -756,7 +762,13 @@ var dlqSchema = {
|
|
|
756
762
|
]
|
|
757
763
|
}
|
|
758
764
|
},
|
|
759
|
-
required: [
|
|
765
|
+
required: [
|
|
766
|
+
"originalRecord",
|
|
767
|
+
"errorMessage",
|
|
768
|
+
"errorType",
|
|
769
|
+
"failedAt",
|
|
770
|
+
"source"
|
|
771
|
+
]
|
|
760
772
|
},
|
|
761
773
|
Recordstringany: {
|
|
762
774
|
type: "object",
|
|
@@ -1863,13 +1875,18 @@ var Stream = class extends TypedBase {
|
|
|
1863
1875
|
} else if ("subjectLatest" in sr.reference) {
|
|
1864
1876
|
schemaId = await registry.getLatestSchemaId(sr.reference.subjectLatest);
|
|
1865
1877
|
} else if ("subject" in sr.reference) {
|
|
1866
|
-
schemaId = await registry.getRegistryId(
|
|
1878
|
+
schemaId = await registry.getRegistryId(
|
|
1879
|
+
sr.reference.subject,
|
|
1880
|
+
sr.reference.version
|
|
1881
|
+
);
|
|
1867
1882
|
}
|
|
1868
1883
|
if (schemaId === void 0) {
|
|
1869
1884
|
throw new Error("Malformed schema reference.");
|
|
1870
1885
|
}
|
|
1871
1886
|
const encoded = await Promise.all(
|
|
1872
|
-
flat.map(
|
|
1887
|
+
flat.map(
|
|
1888
|
+
(v) => registry.encode(schemaId, v)
|
|
1889
|
+
)
|
|
1873
1890
|
);
|
|
1874
1891
|
await producer.send({
|
|
1875
1892
|
topic,
|
|
@@ -1912,7 +1929,9 @@ var Stream = class extends TypedBase {
|
|
|
1912
1929
|
existingTransforms.push([destination, transformation, transformConfig]);
|
|
1913
1930
|
}
|
|
1914
1931
|
} else {
|
|
1915
|
-
this._transformations.set(destination.name, [
|
|
1932
|
+
this._transformations.set(destination.name, [
|
|
1933
|
+
[destination, transformation, transformConfig]
|
|
1934
|
+
]);
|
|
1916
1935
|
}
|
|
1917
1936
|
}
|
|
1918
1937
|
/**
|