@strapi/review-workflows 0.0.0-experimental.fccfa141baa6df7776ec7cb83f7fe923626ba6f5 → 0.0.0-next.3c5bc3f35387771b185349533729e99e6e59c525
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/_chunks/{Layout-D67sjTk0.mjs → Layout-CJZ4iUxI.mjs} +2 -2
- package/dist/_chunks/{Layout-D67sjTk0.mjs.map → Layout-CJZ4iUxI.mjs.map} +1 -1
- package/dist/_chunks/{Layout-BWZ_v3U2.js → Layout-D7wwT4c7.js} +2 -2
- package/dist/_chunks/{Layout-BWZ_v3U2.js.map → Layout-D7wwT4c7.js.map} +1 -1
- package/dist/_chunks/{_id-V0we8TjF.mjs → _id-DA44l-QM.mjs} +3 -4
- package/dist/_chunks/{_id-V0we8TjF.mjs.map → _id-DA44l-QM.mjs.map} +1 -1
- package/dist/_chunks/{_id-yvj51pI9.js → _id-DgUOk637.js} +3 -4
- package/dist/_chunks/{_id-yvj51pI9.js.map → _id-DgUOk637.js.map} +1 -1
- package/dist/_chunks/{index-94iCcgYf.mjs → index-C33Q2-Fc.mjs} +5 -2
- package/dist/_chunks/{index-94iCcgYf.mjs.map → index-C33Q2-Fc.mjs.map} +1 -1
- package/dist/_chunks/{index-C1DFk3YF.mjs → index-CnyO97Gi.mjs} +3 -3
- package/dist/_chunks/{index-C1DFk3YF.mjs.map → index-CnyO97Gi.mjs.map} +1 -1
- package/dist/_chunks/{index-DoDtuLNl.js → index-DL9odlOl.js} +3 -3
- package/dist/_chunks/{index-DoDtuLNl.js.map → index-DL9odlOl.js.map} +1 -1
- package/dist/_chunks/{index-B-9wJGm0.js → index-mQar1hfK.js} +5 -2
- package/dist/_chunks/{index-B-9wJGm0.js.map → index-mQar1hfK.js.map} +1 -1
- package/dist/_chunks/{router-By3ObDDu.js → router-B1YtLp6u.js} +3 -3
- package/dist/_chunks/{router-By3ObDDu.js.map → router-B1YtLp6u.js.map} +1 -1
- package/dist/_chunks/{router-BXkSghs6.mjs → router-BFv8U71z.mjs} +3 -3
- package/dist/_chunks/{router-BXkSghs6.mjs.map → router-BFv8U71z.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +12 -7
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +12 -7
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/services/metrics/weekly-metrics.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -4,10 +4,10 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const reactRouterDom = require("react-router-dom");
|
|
6
6
|
const ProtectedListPage = React.lazy(
|
|
7
|
-
() => Promise.resolve().then(() => require("./index-
|
|
7
|
+
() => Promise.resolve().then(() => require("./index-DL9odlOl.js")).then((mod) => ({ default: mod.ProtectedListPage }))
|
|
8
8
|
);
|
|
9
9
|
const ProtectedEditPage = React.lazy(
|
|
10
|
-
() => Promise.resolve().then(() => require("./_id-
|
|
10
|
+
() => Promise.resolve().then(() => require("./_id-DgUOk637.js")).then((mod) => ({ default: mod.ProtectedEditPage }))
|
|
11
11
|
);
|
|
12
12
|
const routes = [
|
|
13
13
|
{
|
|
@@ -21,4 +21,4 @@ const routes = [
|
|
|
21
21
|
];
|
|
22
22
|
const Router = () => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Routes, { children: routes.map((route) => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Route, { ...route }, route.path)) });
|
|
23
23
|
exports.Router = Router;
|
|
24
|
-
//# sourceMappingURL=router-
|
|
24
|
+
//# sourceMappingURL=router-B1YtLp6u.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router-
|
|
1
|
+
{"version":3,"file":"router-B1YtLp6u.js","sources":["../../admin/src/router.tsx"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\nimport { lazy } from 'react';\n\nimport { Routes, Route, PathRouteProps } from 'react-router-dom';\n\nconst ProtectedListPage = lazy(() =>\n import('./routes/settings').then((mod) => ({ default: mod.ProtectedListPage }))\n);\nconst ProtectedEditPage = lazy(() =>\n import('./routes/settings/:id').then((mod) => ({ default: mod.ProtectedEditPage }))\n);\n\nconst routes: PathRouteProps[] = [\n {\n path: '/',\n Component: ProtectedListPage,\n },\n {\n path: ':id',\n Component: ProtectedEditPage,\n },\n];\n\nconst Router = () => (\n <Routes>\n {routes.map((route) => (\n <Route key={route.path} {...route} />\n ))}\n </Routes>\n);\n\nexport { Router };\n"],"names":["lazy","jsx","Routes","Route"],"mappings":";;;;;AAKA,MAAM,oBAAoBA,MAAA;AAAA,EAAK,MAC7B,QAAO,QAAA,EAAA,KAAA,MAAA,QAAA,qBAAmB,GAAE,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,kBAAA,EAAoB;AAChF;AACA,MAAM,oBAAoBA,MAAA;AAAA,EAAK,MAC7B,QAAO,QAAA,EAAA,KAAA,MAAA,QAAA,mBAAuB,GAAE,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,kBAAA,EAAoB;AACpF;AAEA,MAAM,SAA2B;AAAA,EAC/B;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF;AAEA,MAAM,SAAS,MACZC,2BAAAA,IAAAC,eAAAA,QAAA,EACE,iBAAO,IAAI,CAAC,UACXD,2BAAA,IAACE,wBAAwB,GAAG,MAAA,GAAhB,MAAM,IAAiB,CACpC,EACH,CAAA;;"}
|
|
@@ -2,10 +2,10 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { lazy } from "react";
|
|
3
3
|
import { Routes, Route } from "react-router-dom";
|
|
4
4
|
const ProtectedListPage = lazy(
|
|
5
|
-
() => import("./index-
|
|
5
|
+
() => import("./index-CnyO97Gi.mjs").then((mod) => ({ default: mod.ProtectedListPage }))
|
|
6
6
|
);
|
|
7
7
|
const ProtectedEditPage = lazy(
|
|
8
|
-
() => import("./_id-
|
|
8
|
+
() => import("./_id-DA44l-QM.mjs").then((mod) => ({ default: mod.ProtectedEditPage }))
|
|
9
9
|
);
|
|
10
10
|
const routes = [
|
|
11
11
|
{
|
|
@@ -21,4 +21,4 @@ const Router = () => /* @__PURE__ */ jsx(Routes, { children: routes.map((route)
|
|
|
21
21
|
export {
|
|
22
22
|
Router
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=router-
|
|
24
|
+
//# sourceMappingURL=router-BFv8U71z.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router-
|
|
1
|
+
{"version":3,"file":"router-BFv8U71z.mjs","sources":["../../admin/src/router.tsx"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\nimport { lazy } from 'react';\n\nimport { Routes, Route, PathRouteProps } from 'react-router-dom';\n\nconst ProtectedListPage = lazy(() =>\n import('./routes/settings').then((mod) => ({ default: mod.ProtectedListPage }))\n);\nconst ProtectedEditPage = lazy(() =>\n import('./routes/settings/:id').then((mod) => ({ default: mod.ProtectedEditPage }))\n);\n\nconst routes: PathRouteProps[] = [\n {\n path: '/',\n Component: ProtectedListPage,\n },\n {\n path: ':id',\n Component: ProtectedEditPage,\n },\n];\n\nconst Router = () => (\n <Routes>\n {routes.map((route) => (\n <Route key={route.path} {...route} />\n ))}\n </Routes>\n);\n\nexport { Router };\n"],"names":[],"mappings":";;;AAKA,MAAM,oBAAoB;AAAA,EAAK,MAC7B,OAAO,sBAAmB,EAAE,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,kBAAA,EAAoB;AAChF;AACA,MAAM,oBAAoB;AAAA,EAAK,MAC7B,OAAO,oBAAuB,EAAE,KAAK,CAAC,SAAS,EAAE,SAAS,IAAI,kBAAA,EAAoB;AACpF;AAEA,MAAM,SAA2B;AAAA,EAC/B;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF;AAEA,MAAM,SAAS,MACZ,oBAAA,QAAA,EACE,iBAAO,IAAI,CAAC,UACX,oBAAC,SAAwB,GAAG,MAAA,GAAhB,MAAM,IAAiB,CACpC,EACH,CAAA;"}
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -7608,13 +7608,13 @@ const reviewWorkflowsMetrics = {
|
|
|
7608
7608
|
sendDidSendReviewWorkflowPropertiesOnceAWeek,
|
|
7609
7609
|
sendDidEditAssignee
|
|
7610
7610
|
};
|
|
7611
|
-
function _typeof(
|
|
7611
|
+
function _typeof(obj) {
|
|
7612
7612
|
"@babel/helpers - typeof";
|
|
7613
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(
|
|
7614
|
-
return typeof
|
|
7615
|
-
} : function(
|
|
7616
|
-
return
|
|
7617
|
-
}, _typeof(
|
|
7613
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
7614
|
+
return typeof obj2;
|
|
7615
|
+
} : function(obj2) {
|
|
7616
|
+
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
7617
|
+
}, _typeof(obj);
|
|
7618
7618
|
}
|
|
7619
7619
|
function toInteger(dirtyNumber) {
|
|
7620
7620
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
@@ -7749,7 +7749,12 @@ const reviewWorkflowsWeeklyMetrics = ({ strapi: strapi2 }) => {
|
|
|
7749
7749
|
},
|
|
7750
7750
|
async registerCron() {
|
|
7751
7751
|
const weeklySchedule = await this.ensureWeeklyStoredCronSchedule();
|
|
7752
|
-
strapi2.cron.add({
|
|
7752
|
+
strapi2.cron.add({
|
|
7753
|
+
reviewWorkflowsWeekly: {
|
|
7754
|
+
task: this.sendMetrics.bind(this),
|
|
7755
|
+
options: weeklySchedule
|
|
7756
|
+
}
|
|
7757
|
+
});
|
|
7753
7758
|
}
|
|
7754
7759
|
};
|
|
7755
7760
|
};
|