@molecule/api-resource-version-history 1.0.7 → 1.0.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.
@@ -20,7 +20,7 @@ export async function versionCount(req, res) {
20
20
  const userId = res.locals.session?.userId;
21
21
  if (!userId) {
22
22
  res.status(401).json({
23
- error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
23
+ error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized.' }),
24
24
  errorKey: 'resource.error.unauthorized',
25
25
  });
26
26
  return;
@@ -23,7 +23,7 @@ export async function create(req, res) {
23
23
  const userId = res.locals.session?.userId;
24
24
  if (!userId) {
25
25
  res.status(401).json({
26
- error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
26
+ error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized.' }),
27
27
  errorKey: 'resource.error.unauthorized',
28
28
  });
29
29
  return;
@@ -22,7 +22,7 @@ export async function diff(req, res) {
22
22
  const userId = res.locals.session?.userId;
23
23
  if (!userId) {
24
24
  res.status(401).json({
25
- error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
25
+ error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized.' }),
26
26
  errorKey: 'resource.error.unauthorized',
27
27
  });
28
28
  return;
@@ -23,7 +23,7 @@ export async function list(req, res) {
23
23
  const userId = res.locals.session?.userId;
24
24
  if (!userId) {
25
25
  res.status(401).json({
26
- error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
26
+ error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized.' }),
27
27
  errorKey: 'resource.error.unauthorized',
28
28
  });
29
29
  return;
@@ -23,7 +23,7 @@ export async function read(req, res) {
23
23
  const userId = res.locals.session?.userId;
24
24
  if (!userId) {
25
25
  res.status(401).json({
26
- error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
26
+ error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized.' }),
27
27
  errorKey: 'resource.error.unauthorized',
28
28
  });
29
29
  return;
@@ -20,7 +20,7 @@ export async function readByNumber(req, res) {
20
20
  const userId = res.locals.session?.userId;
21
21
  if (!userId) {
22
22
  res.status(401).json({
23
- error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
23
+ error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized.' }),
24
24
  errorKey: 'resource.error.unauthorized',
25
25
  });
26
26
  return;
@@ -24,7 +24,7 @@ export async function restore(req, res) {
24
24
  const userId = res.locals.session?.userId;
25
25
  if (!userId) {
26
26
  res.status(401).json({
27
- error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
27
+ error: t('resource.error.unauthorized', undefined, { defaultValue: 'Unauthorized.' }),
28
28
  errorKey: 'resource.error.unauthorized',
29
29
  });
30
30
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-resource-version-history",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Append-only versions table with diff and restore — generic versioning helper for any resource.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -46,15 +46,6 @@
46
46
  "zod": "^4.0.0"
47
47
  },
48
48
  "peerDependenciesMeta": {
49
- "@molecule/api-database": {
50
- "optional": true
51
- },
52
- "@molecule/api-i18n": {
53
- "optional": true
54
- },
55
- "@molecule/api-logger": {
56
- "optional": true
57
- },
58
49
  "@molecule/api-resource": {
59
50
  "optional": true
60
51
  }