New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hakisocial

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hakisocial - npm Package Compare versions

Comparing version 0.0.0 to 0.0.3

lib/types/product/index.d.ts

5

lib/errors/dictionary.d.ts

@@ -10,3 +10,6 @@ export declare enum ErrorCodes {

MISSING_REQUIRED_FIELD = "MISSING_REQUIRED_FIELD",
INVALID_PASSWORD_LENGTH = "INVALID_PASSWORD_LENGTH"
INVALID_PASSWORD_LENGTH = "INVALID_PASSWORD_LENGTH",
ONLY_STORE_ALLOWED = "ONLY_STORE_ALLOWED",
PRODUCT_NOT_FOUND = "PRODUCT_NOT_FOUND",
ONLY_PRODUCT_OWNER_ALLOWED = "ONLY_PRODUCT_OWNER_ALLOWED"
}

@@ -13,0 +16,0 @@ export interface ErrorDictionary {

@@ -15,2 +15,5 @@ "use strict";

ErrorCodes["INVALID_PASSWORD_LENGTH"] = "INVALID_PASSWORD_LENGTH";
ErrorCodes["ONLY_STORE_ALLOWED"] = "ONLY_STORE_ALLOWED";
ErrorCodes["PRODUCT_NOT_FOUND"] = "PRODUCT_NOT_FOUND";
ErrorCodes["ONLY_PRODUCT_OWNER_ALLOWED"] = "ONLY_PRODUCT_OWNER_ALLOWED";
})(ErrorCodes = exports.ErrorCodes || (exports.ErrorCodes = {}));

@@ -54,2 +57,14 @@ exports.errors = {

},
ONLY_STORE_ALLOWED: {
id: '009',
message: 'Solo un comercio puede realizar esta accion',
},
PRODUCT_NOT_FOUND: {
id: '010',
message: 'Producto no encontrado',
},
ONLY_PRODUCT_OWNER_ALLOWED: {
id: '011',
message: 'Solo quien posee el producto puede realizar esta accion',
},
};

@@ -1,4 +0,5 @@

export { LoginDTO, Credentials } from './types/auth';
export { User, Role, RegisterUserDTO } from './types/user';
export * from './types/auth';
export * from './types/user';
export * from './types/product';
export { default as AGTError, ErrorCodes } from './errors';
export * as TestUtils from './utils/test-utils';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./types/auth"), exports);
__exportStar(require("./types/user"), exports);
__exportStar(require("./types/product"), exports);
var errors_1 = require("./errors");

@@ -4,0 +17,0 @@ Object.defineProperty(exports, "AGTError", { enumerable: true, get: function () { return errors_1.default; } });

2

package.json
{
"name": "hakisocial",
"version": "0.0.0",
"version": "0.0.3",
"description": "Suite of types to be used across the Haki organization",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

# Haki Types
## Correrlo local
## Generar librería para usar de forma local
```
yarn
npm i
npm link
npm run build
```
## Modificar tipos y utilizarlos localmente sin tener que publicar
`yarn build` hay que correrlo cada vez que haya algún cambio que se quiera ver reflejado al importar el paquete desde otro lugar.
### En `/types`
### En el directorio del proyecto en el cual se está trabajando y depende de este repositorio
```
yarn link
yarn build
```
`yarn build` hay que correrlo cada vez que haya algún cambio que se quiera ver reflejado al importar el paquete desde otro lugar.
### En el directorio del proyecto en el cual se está trabajando
```
yarn link @hakisocial/types
```
Después importar los tipos normalmente
Después importar los tipos normalmente (Ejemplo: `import { LoginDTO } from 'hakisocial'`)

@@ -11,2 +11,5 @@ export enum ErrorCodes {

INVALID_PASSWORD_LENGTH = 'INVALID_PASSWORD_LENGTH',
ONLY_STORE_ALLOWED = 'ONLY_STORE_ALLOWED',
PRODUCT_NOT_FOUND = 'PRODUCT_NOT_FOUND',
ONLY_PRODUCT_OWNER_ALLOWED = 'ONLY_PRODUCT_OWNER_ALLOWED'
}

@@ -58,2 +61,14 @@

},
ONLY_STORE_ALLOWED: {
id: '009',
message: 'Solo un comercio puede realizar esta accion',
},
PRODUCT_NOT_FOUND: {
id: '010',
message: 'Producto no encontrado',
},
ONLY_PRODUCT_OWNER_ALLOWED: {
id: '011',
message: 'Solo quien posee el producto puede realizar esta accion',
},
};

@@ -1,4 +0,5 @@

export { LoginDTO, Credentials } from './types/auth';
export { User, Role, RegisterUserDTO } from './types/user';
export * from './types/auth';
export * from './types/user';
export * from './types/product';
export { default as AGTError, ErrorCodes } from './errors';
export * as TestUtils from './utils/test-utils';

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc