@cyberskill/shared 1.6.0 → 1.6.1

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.
Files changed (50) hide show
  1. package/dist/commands.cjs +1 -1
  2. package/dist/commands.js +1 -1
  3. package/dist/configs/index.cjs +1 -1
  4. package/dist/configs/index.js +1 -1
  5. package/dist/controllers/index.cjs +1 -1
  6. package/dist/controllers/index.js +1 -1
  7. package/dist/controllers/mongoose.cjs +1 -1
  8. package/dist/controllers/mongoose.js +1 -1
  9. package/dist/hooks/react/index.cjs +1 -1
  10. package/dist/hooks/react/index.js +1 -1
  11. package/dist/hooks/react/useLocalStorage.cjs +1 -1
  12. package/dist/hooks/react/useLocalStorage.js +1 -1
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.d.cts +7 -2
  15. package/dist/index.d.ts +7 -2
  16. package/dist/index.js +1 -1
  17. package/dist/typescript/command.d.cts +7 -1
  18. package/dist/typescript/command.d.ts +7 -1
  19. package/dist/typescript/index.d.cts +1 -1
  20. package/dist/typescript/index.d.ts +1 -1
  21. package/dist/utils/command-error.cjs +1 -0
  22. package/dist/utils/command-error.d.cts +18 -0
  23. package/dist/utils/command-error.d.ts +18 -0
  24. package/dist/utils/command-error.js +1 -0
  25. package/dist/utils/command-log.cjs +1 -0
  26. package/dist/utils/command-log.d.cts +3 -0
  27. package/dist/utils/command-log.d.ts +3 -0
  28. package/dist/utils/command-log.js +1 -0
  29. package/dist/utils/command-spinner.cjs +1 -0
  30. package/dist/utils/command-spinner.d.cts +11 -0
  31. package/dist/utils/command-spinner.d.ts +11 -0
  32. package/dist/utils/command-spinner.js +1 -0
  33. package/dist/utils/command.cjs +1 -0
  34. package/dist/utils/command.d.cts +5 -0
  35. package/dist/utils/command.d.ts +5 -0
  36. package/dist/utils/command.js +1 -0
  37. package/dist/utils/index.cjs +1 -1
  38. package/dist/utils/index.d.cts +7 -1
  39. package/dist/utils/index.d.ts +7 -1
  40. package/dist/utils/index.js +1 -1
  41. package/dist/utils/npm-package.cjs +1 -0
  42. package/dist/utils/npm-package.d.cts +15 -0
  43. package/dist/utils/npm-package.d.ts +15 -0
  44. package/dist/utils/npm-package.js +1 -0
  45. package/package.json +1 -2
  46. package/dist/cyberskill-shared-1.6.0.tgz +0 -0
  47. /package/dist/utils/{localStorage.cjs → local-storage.cjs} +0 -0
  48. /package/dist/utils/{localStorage.d.cts → local-storage.d.cts} +0 -0
  49. /package/dist/utils/{localStorage.d.ts → local-storage.d.ts} +0 -0
  50. /package/dist/utils/{localStorage.js → local-storage.js} +0 -0
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { I_LoadingProps, Loading } from './components/react/loading/index.cjs';
2
- export { E_ErrorType, E_SpinnerMessage, I_ErrorEntry, I_EslintError } from './typescript/command.cjs';
2
+ export { E_ErrorType, E_SpinnerMessage, I_ErrorEntry, I_EslintError, I_SpinnerOptions } from './typescript/command.cjs';
3
3
  export { I_Config } from './typescript/config.cjs';
4
4
  export { T_ThrowResponseArgs } from './typescript/log.cjs';
5
5
  export { C_Collection, C_Db, C_Document, C_Model, I_DeleteOptionsExtended, I_ExtendedModel, I_GenerateModelOptions, I_GenerateSchemaOptions, I_GenericDocument, I_HookNextFunction, I_Input_CreateMany, I_Input_CreateOne, I_Input_DeleteMany, I_Input_DeleteOne, I_Input_FindAll, I_Input_FindOne, I_Input_FindPaging, I_Input_FindPagingAggregate, I_Input_UpdateMany, I_Input_UpdateOne, I_MongooseModelMiddleware, I_MongooseOptions, I_Return, I_ReturnFailure, I_ReturnSuccess, I_SlugifyOptions, I_UpdateOptionsExtended, T_AggregatePaginateResult, T_DeleteResult, T_Filter, T_FilterQuery, T_GenerateSlugQueryResponse, T_Input_MongooseSchema, T_Input_Populate, T_InsertManyOptions, T_InsertManyResult, T_InsertOneResult, T_MiddlewareContext, T_MongooseModelMiddlewareFunction, T_MongoosePlugin, T_MongooseShema, T_OptionalUnlessRequiredId, T_PaginateOptions, T_PaginateOptionsWithPopulate, T_PaginateResult, T_PipelineStage, T_PopulateOption, T_PopulateOptions, T_ProjectionType, T_QueryOptions, T_UpdateQuery, T_UpdateResult, T_WithId } from './typescript/mongoose.cjs';
@@ -15,11 +15,16 @@ export { useLocalStorage } from './hooks/react/useLocalStorage.cjs';
15
15
  export { ApolloProvider } from './providers/react/apollo-client.cjs';
16
16
  export { LoadingProvider } from './providers/react/loading.cjs';
17
17
  export { deepMerge, isJson, regexSearchMapper, removeAccent } from './utils/index.cjs';
18
- export { localStorage } from './utils/localStorage.cjs';
18
+ export { clearExpiredErrorLists, getStoredErrorLists, saveErrorListToStorage } from './utils/command-error.cjs';
19
+ export { displayResults } from './utils/command-log.cjs';
20
+ export { runWithSpinner } from './utils/command-spinner.cjs';
21
+ export { executeCommand, logProcessStep } from './utils/command.cjs';
22
+ export { localStorage } from './utils/local-storage.cjs';
19
23
  export { throwResponse } from './utils/log.cjs';
20
24
  export { default as aggregatePaginate } from 'mongoose-aggregate-paginate-v2';
21
25
  export { default as mongoosePaginate } from 'mongoose-paginate-v2';
22
26
  export { generateModel, generateSchema, generateShortId, generateSlug, generateSlugQuery } from './utils/mongoose.cjs';
27
+ export { getLatestPackageVersion, isPackageOutdated, updatePackage } from './utils/npm-package.cjs';
23
28
  export { serializer } from './utils/serializer.cjs';
24
29
  export { validate } from './utils/validate.cjs';
25
30
  import 'react/jsx-runtime';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { I_LoadingProps, Loading } from './components/react/loading/index.js';
2
- export { E_ErrorType, E_SpinnerMessage, I_ErrorEntry, I_EslintError } from './typescript/command.js';
2
+ export { E_ErrorType, E_SpinnerMessage, I_ErrorEntry, I_EslintError, I_SpinnerOptions } from './typescript/command.js';
3
3
  export { I_Config } from './typescript/config.js';
4
4
  export { T_ThrowResponseArgs } from './typescript/log.js';
5
5
  export { C_Collection, C_Db, C_Document, C_Model, I_DeleteOptionsExtended, I_ExtendedModel, I_GenerateModelOptions, I_GenerateSchemaOptions, I_GenericDocument, I_HookNextFunction, I_Input_CreateMany, I_Input_CreateOne, I_Input_DeleteMany, I_Input_DeleteOne, I_Input_FindAll, I_Input_FindOne, I_Input_FindPaging, I_Input_FindPagingAggregate, I_Input_UpdateMany, I_Input_UpdateOne, I_MongooseModelMiddleware, I_MongooseOptions, I_Return, I_ReturnFailure, I_ReturnSuccess, I_SlugifyOptions, I_UpdateOptionsExtended, T_AggregatePaginateResult, T_DeleteResult, T_Filter, T_FilterQuery, T_GenerateSlugQueryResponse, T_Input_MongooseSchema, T_Input_Populate, T_InsertManyOptions, T_InsertManyResult, T_InsertOneResult, T_MiddlewareContext, T_MongooseModelMiddlewareFunction, T_MongoosePlugin, T_MongooseShema, T_OptionalUnlessRequiredId, T_PaginateOptions, T_PaginateOptionsWithPopulate, T_PaginateResult, T_PipelineStage, T_PopulateOption, T_PopulateOptions, T_ProjectionType, T_QueryOptions, T_UpdateQuery, T_UpdateResult, T_WithId } from './typescript/mongoose.js';
@@ -15,11 +15,16 @@ export { useLocalStorage } from './hooks/react/useLocalStorage.js';
15
15
  export { ApolloProvider } from './providers/react/apollo-client.js';
16
16
  export { LoadingProvider } from './providers/react/loading.js';
17
17
  export { deepMerge, isJson, regexSearchMapper, removeAccent } from './utils/index.js';
18
- export { localStorage } from './utils/localStorage.js';
18
+ export { clearExpiredErrorLists, getStoredErrorLists, saveErrorListToStorage } from './utils/command-error.js';
19
+ export { displayResults } from './utils/command-log.js';
20
+ export { runWithSpinner } from './utils/command-spinner.js';
21
+ export { executeCommand, logProcessStep } from './utils/command.js';
22
+ export { localStorage } from './utils/local-storage.js';
19
23
  export { throwResponse } from './utils/log.js';
20
24
  export { default as aggregatePaginate } from 'mongoose-aggregate-paginate-v2';
21
25
  export { default as mongoosePaginate } from 'mongoose-paginate-v2';
22
26
  export { generateModel, generateSchema, generateShortId, generateSlug, generateSlugQuery } from './utils/mongoose.js';
27
+ export { getLatestPackageVersion, isPackageOutdated, updatePackage } from './utils/npm-package.js';
23
28
  export { serializer } from './utils/serializer.js';
24
29
  export { validate } from './utils/validate.js';
25
30
  import 'react/jsx-runtime';