@alevnyacow/nzmt 0.0.7 → 0.0.8

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/index.cjs CHANGED
@@ -418,7 +418,6 @@ const methods = (schemas)=>{
418
418
  const data = mapStoreSchemasToModuleMetadata(schemas, schemas.name);
419
419
  return zodModuleMethodFactory(data);
420
420
  };
421
- const external_uuid_namespaceObject = require("uuid");
422
421
  const InRAM = (schemas, options)=>{
423
422
  class RAMStore {
424
423
  ___data = [];
@@ -436,7 +435,7 @@ const InRAM = (schemas, options)=>{
436
435
  ___mapDetailToList = (entity)=>entity;
437
436
  ___mapCreatePayloadToDetail = (payload)=>({
438
437
  ...payload,
439
- id: (0, external_uuid_namespaceObject.v4)()
438
+ id: Math.random().toString()
440
439
  });
441
440
  ___mapUpdatePayloadToDetail = (prevValue, update)=>({
442
441
  ...prevValue,
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { __webpack_require__ } from "./rslib-runtime.js";
2
2
  import { NextResponse } from "next/server";
3
3
  import zod from "zod";
4
- import { v4 } from "uuid";
5
4
  var store_namespaceObject = {};
6
5
  __webpack_require__.r(store_namespaceObject);
7
6
  __webpack_require__.d(store_namespaceObject, {
@@ -397,7 +396,7 @@ const InRAM = (schemas, options)=>{
397
396
  ___mapDetailToList = (entity)=>entity;
398
397
  ___mapCreatePayloadToDetail = (payload)=>({
399
398
  ...payload,
400
- id: v4()
399
+ id: Math.random().toString()
401
400
  });
402
401
  ___mapUpdatePayloadToDetail = (prevValue, update)=>({
403
402
  ...prevValue,
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- import { Pagination, PaginationModel } from './store.pagination.entity';
2
+ import { Pagination } from './store.pagination.entity';
3
3
  import type { CRUD, Types } from './store.shared-models.utils';
4
4
  import { type Contract, type Metadata } from './store.zod.utils';
5
5
  export declare const InRAM: <T extends Metadata>(schemas: T, options?: {
@@ -741,7 +741,7 @@ export declare const InRAM: <T extends Metadata>(schemas: T, options?: {
741
741
  update: AUpdate;
742
742
  };
743
743
  } : never : never : never)["SearchPayload"]["list"];
744
- pagination?: PaginationModel;
744
+ pagination?: import("./store.pagination.entity").PaginationModel;
745
745
  }) => Promise<(Contract<T> extends infer T_2 ? T_2 extends Contract<T> ? T_2 extends {
746
746
  list: (data: {
747
747
  filter: infer SList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "type": "module",
6
6
  "exports": {
@@ -37,7 +37,6 @@
37
37
  },
38
38
  "private": false,
39
39
  "dependencies": {
40
- "uuid": "^13.0.0",
41
40
  "zod": "^4.3.6"
42
41
  }
43
42
  }