@daffodil/driver 0.42.0 → 0.42.3

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.
@@ -0,0 +1,3 @@
1
+ export declare enum DaffDriverErrorCodes {
2
+ BAD_INPUT = "DAFF_BAD_INPUT"
3
+ }
@@ -1 +1,2 @@
1
1
  export { DaffBadInputError } from './bad-input';
2
+ export { DaffDriverErrorCodes } from './codes';
@@ -1,9 +1,10 @@
1
1
  import { DaffInheritableError, } from '@daffodil/core';
2
+ import { DaffDriverErrorCodes } from './codes';
2
3
  export class DaffBadInputError extends DaffInheritableError {
3
4
  constructor(message) {
4
5
  super(message);
5
6
  this.message = message;
6
- this.code = 'DAFF_BAD_INPUT';
7
+ this.code = DaffDriverErrorCodes.BAD_INPUT;
7
8
  }
8
9
  }
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFkLWlucHV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicy9kcml2ZXIvc3JjL2Vycm9ycy9iYWQtaW5wdXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLG9CQUFvQixHQUNyQixNQUFNLGdCQUFnQixDQUFDO0FBRXhCLE1BQU0sT0FBTyxpQkFBa0IsU0FBUSxvQkFBb0I7SUFHekQsWUFBbUIsT0FBZTtRQUNoQyxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFERSxZQUFPLEdBQVAsT0FBTyxDQUFRO1FBRmxCLFNBQUksR0FBVyxnQkFBZ0IsQ0FBQztJQUloRCxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBEYWZmRXJyb3IsXG4gIERhZmZJbmhlcml0YWJsZUVycm9yLFxufSBmcm9tICdAZGFmZm9kaWwvY29yZSc7XG5cbmV4cG9ydCBjbGFzcyBEYWZmQ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1wbGVtZW50cyBEYWZmRXJyb3Ige1xuICBwdWJsaWMgcmVhZG9ubHkgY29kZTogc3RyaW5nID0gRGFmZkRyaXZlckVycm9yQ29kZXMuQkFEX0lOUFVUO1xuXG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBtZXNzYWdlOiBzdHJpbmcpIHtcbiAgICBzdXBlcihtZXNzYWdlKTtcbiAgfVxufVxuIl19
@@ -0,0 +1,5 @@
1
+ export var DaffDriverErrorCodes;
2
+ (function (DaffDriverErrorCodes) {
3
+ DaffDriverErrorCodes["BAD_INPUT"] = "DAFF_BAD_INPUT";
4
+ })(DaffDriverErrorCodes || (DaffDriverErrorCodes = {}));
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2RyaXZlci9zcmMvZXJyb3JzL2NvZGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLG9CQUVYO0FBRkQsV0FBWSxvQkFBb0I7SUFDOUIsb0RBQTRCLENBQUE7QUFDOUIsQ0FBQyxFQUZXLG9CQUFvQixLQUFwQixvQkFBb0IsUUFFL0IiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBEYWZmRHJpdmVyRXJyb3JDb2RlcyB7XG4gIEJBRF9JTlBVVCA9ICdEQUZGX0JBRF9JTlBVVCdcbn1cbiJdfQ==
@@ -1,2 +1,3 @@
1
1
  export { DaffBadInputError } from './bad-input';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvZHJpdmVyL3NyYy9lcnJvcnMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBEYWZmQmFkSW5wdXRFcnJvciB9IGZyb20gJy4vYmFkLWlucHV0JztcbiJdfQ==
2
+ export { DaffDriverErrorCodes } from './codes';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvZHJpdmVyL3NyYy9lcnJvcnMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDaEQsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgRGFmZkJhZElucHV0RXJyb3IgfSBmcm9tICcuL2JhZC1pbnB1dCc7XG5leHBvcnQgeyBEYWZmRHJpdmVyRXJyb3JDb2RlcyB9IGZyb20gJy4vY29kZXMnO1xuIl19
@@ -1,10 +1,15 @@
1
1
  import { DaffInheritableError } from '@daffodil/core';
2
2
 
3
+ var DaffDriverErrorCodes;
4
+ (function (DaffDriverErrorCodes) {
5
+ DaffDriverErrorCodes["BAD_INPUT"] = "DAFF_BAD_INPUT";
6
+ })(DaffDriverErrorCodes || (DaffDriverErrorCodes = {}));
7
+
3
8
  class DaffBadInputError extends DaffInheritableError {
4
9
  constructor(message) {
5
10
  super(message);
6
11
  this.message = message;
7
- this.code = 'DAFF_BAD_INPUT';
12
+ this.code = DaffDriverErrorCodes.BAD_INPUT;
8
13
  }
9
14
  }
10
15
 
@@ -12,5 +17,5 @@ class DaffBadInputError extends DaffInheritableError {
12
17
  * Generated bundle index. Do not edit.
13
18
  */
14
19
 
15
- export { DaffBadInputError };
20
+ export { DaffBadInputError, DaffDriverErrorCodes };
16
21
  //# sourceMappingURL=daffodil-driver.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-driver.mjs","sources":["../../../libs/driver/src/errors/bad-input.ts","../../../libs/driver/src/daffodil-driver.ts"],"sourcesContent":["import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nexport class DaffBadInputError extends DaffInheritableError implements DaffError {\n public readonly code: string = 'DAFF_BAD_INPUT';\n\n constructor(public message: string) {\n super(message);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAKM,MAAO,iBAAkB,SAAQ,oBAAoB,CAAA;AAGzD,IAAA,WAAA,CAAmB,OAAe,EAAA;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;AADE,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAQ;AAFlB,QAAA,IAAI,CAAA,IAAA,GAAW,gBAAgB,CAAC;KAI/C;AACF;;ACXD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-driver.mjs","sources":["../../../libs/driver/src/errors/codes.ts","../../../libs/driver/src/errors/bad-input.ts","../../../libs/driver/src/daffodil-driver.ts"],"sourcesContent":["export enum DaffDriverErrorCodes {\n BAD_INPUT = 'DAFF_BAD_INPUT'\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffDriverErrorCodes } from './codes';\n\nexport class DaffBadInputError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffDriverErrorCodes.BAD_INPUT;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAY,IAAA,qBAEX;AAFD,CAAA,UAAY,oBAAoB,EAAA;AAC9B,IAAA,oBAAA,CAAA,WAAA,CAAA,GAAA,gBAA4B,CAAA;AAC9B,CAAC,EAFW,oBAAoB,KAApB,oBAAoB,GAE/B,EAAA,CAAA,CAAA;;ACKK,MAAO,iBAAkB,SAAQ,oBAAoB,CAAA;AAGzD,IAAA,WAAA,CAAmB,OAAe,EAAA;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;AADE,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAQ;AAFlB,QAAA,IAAA,CAAA,IAAI,GAAW,oBAAoB,CAAC,SAAS,CAAC;KAI7D;AACF;;ACbD;;AAEG;;;;"}
@@ -1,10 +1,15 @@
1
1
  import { DaffInheritableError } from '@daffodil/core';
2
2
 
3
+ var DaffDriverErrorCodes;
4
+ (function (DaffDriverErrorCodes) {
5
+ DaffDriverErrorCodes["BAD_INPUT"] = "DAFF_BAD_INPUT";
6
+ })(DaffDriverErrorCodes || (DaffDriverErrorCodes = {}));
7
+
3
8
  class DaffBadInputError extends DaffInheritableError {
4
9
  constructor(message) {
5
10
  super(message);
6
11
  this.message = message;
7
- this.code = 'DAFF_BAD_INPUT';
12
+ this.code = DaffDriverErrorCodes.BAD_INPUT;
8
13
  }
9
14
  }
10
15
 
@@ -12,5 +17,5 @@ class DaffBadInputError extends DaffInheritableError {
12
17
  * Generated bundle index. Do not edit.
13
18
  */
14
19
 
15
- export { DaffBadInputError };
20
+ export { DaffBadInputError, DaffDriverErrorCodes };
16
21
  //# sourceMappingURL=daffodil-driver.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-driver.mjs","sources":["../../../libs/driver/src/errors/bad-input.ts","../../../libs/driver/src/daffodil-driver.ts"],"sourcesContent":["import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nexport class DaffBadInputError extends DaffInheritableError implements DaffError {\n public readonly code: string = 'DAFF_BAD_INPUT';\n\n constructor(public message: string) {\n super(message);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAKM,MAAO,iBAAkB,SAAQ,oBAAoB,CAAA;AAGzD,IAAA,WAAA,CAAmB,OAAe,EAAA;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,IAAO,CAAA,OAAA,GAAP,OAAO,CAAQ;QAFlB,IAAI,CAAA,IAAA,GAAW,gBAAgB,CAAC;KAI/C;AACF;;ACXD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-driver.mjs","sources":["../../../libs/driver/src/errors/codes.ts","../../../libs/driver/src/errors/bad-input.ts","../../../libs/driver/src/daffodil-driver.ts"],"sourcesContent":["export enum DaffDriverErrorCodes {\n BAD_INPUT = 'DAFF_BAD_INPUT'\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffDriverErrorCodes } from './codes';\n\nexport class DaffBadInputError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffDriverErrorCodes.BAD_INPUT;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;IAAY,qBAEX;AAFD,CAAA,UAAY,oBAAoB,EAAA;AAC9B,IAAA,oBAAA,CAAA,WAAA,CAAA,GAAA,gBAA4B,CAAA;AAC9B,CAAC,EAFW,oBAAoB,KAApB,oBAAoB,GAE/B,EAAA,CAAA,CAAA;;ACKK,MAAO,iBAAkB,SAAQ,oBAAoB,CAAA;AAGzD,IAAA,WAAA,CAAmB,OAAe,EAAA;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,IAAO,CAAA,OAAA,GAAP,OAAO,CAAQ;AAFlB,QAAA,IAAA,CAAA,IAAI,GAAW,oBAAoB,CAAC,SAAS,CAAC;KAI7D;AACF;;ACbD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daffodil/driver",
3
- "version": "0.42.0",
3
+ "version": "0.42.3",
4
4
  "description": "A consistent, sane api driver that works with different ecommerce systems.",
5
5
  "repository": {
6
6
  "type": "git",