@cowprotocol/app-data
Advanced tools
Comparing version 0.0.2-RC.0 to 0.0.2-RC.1
@@ -10,4 +10,5 @@ import * as v0_1_0 from './v0.1.0'; | ||
export declare const LATEST_REFERRER_METADATA_VERSION = "0.1.0"; | ||
export declare const LATEST_ORDER_CLASS_METADATA_VERSION = "0.1.0"; | ||
export declare type LatestAppDataDocVersion = v0_5_0.AppDataRootSchema; | ||
export declare type AnyAppDataDocVersion = v0_5_0.AppDataRootSchema | v0_4_0.AppDataRootSchema | v0_3_0.AppDataRootSchema | v0_2_0.AppDataRootSchema | v0_1_0.AppDataRootSchema; | ||
export { v0_5_0, v0_4_0, v0_3_0, v0_2_0, v0_1_0 }; |
@@ -1,2 +0,2 @@ | ||
import r from"ajv";var t={__proto__:null},e={__proto__:null},n={__proto__:null},o={__proto__:null},s={__proto__:null};const i="0.5.0",c="0.2.0",u="0.1.0";function a(r,t){try{var e=r()}catch(r){return t(r)}return e&&e.then?e.then(void 0,t):e}const f=function(t){try{let n;function e(r){return n?r:{success:!!s(t),errors:s.errors?m.errorsText(s.errors):void 0}}const{version:o}=t;m||(m=new r);let s=m.getSchema(o);const i=function(){if(!s){function r(r){if(n)return r;m.addSchema(t,o),s=m.getSchema(o)}let t;const e=a(function(){return Promise.resolve(l(o)).then(function(r){t=r})},function(r){if(r instanceof Error)return n=1,{success:!1,errors:r.message};throw r});return e&&e.then?e.then(r):r(e)}}();return Promise.resolve(i&&i.then?i.then(e):e(i))}catch(c){return Promise.reject(c)}},l=function(r){try{if(!/^\d+\.\d+\.\d+$/.test(r))throw new Error(`AppData version ${r} is not a valid version`);return Promise.resolve(a(function(){return Promise.resolve(import(`../schemas/v${r}.json`))},function(){throw new Error(`AppData version ${r} doesn't exist`)}))}catch(r){return Promise.reject(r)}};function _(r){return{...r,version:"0.2.0"}}function v(r){return{...r,version:"0.1.0"}}function h(r){return{...r,version:"0.5.0"}}let m;export{i as LATEST_APP_DATA_VERSION,c as LATEST_QUOTE_METADATA_VERSION,u as LATEST_REFERRER_METADATA_VERSION,h as createAppDataDoc,_ as createQuoteMetadata,v as createReferrerMetadata,l as getAppDataSchema,s as latest,t as v0_1_0,e as v0_2_0,n as v0_3_0,o as v0_4_0,s as v0_5_0,f as validateAppDataDoc}; | ||
import r from"ajv";var n={__proto__:null},t={__proto__:null},e={__proto__:null},o={__proto__:null},s={__proto__:null};const i="0.5.0",u="0.2.0",c="0.1.0",a="0.1.0";function f(r,n){try{var t=r()}catch(r){return n(r)}return t&&t.then?t.then(void 0,n):t}const l=function(n){try{let e;function t(r){return e?r:{success:!!s(n),errors:s.errors?d.errorsText(s.errors):void 0}}const{version:o}=n;d||(d=new r);let s=d.getSchema(o);const i=function(){if(!s){function r(r){if(e)return r;d.addSchema(n,o),s=d.getSchema(o)}let n;const t=f(function(){return Promise.resolve(_(o)).then(function(r){n=r})},function(r){if(r instanceof Error)return e=1,{success:!1,errors:r.message};throw r});return t&&t.then?t.then(r):r(t)}}();return Promise.resolve(i&&i.then?i.then(t):t(i))}catch(u){return Promise.reject(u)}},_=function(r){try{if(!/^\d+\.\d+\.\d+$/.test(r))throw new Error(`AppData version ${r} is not a valid version`);return Promise.resolve(f(function(){return Promise.resolve(import(`../schemas/v${r}.json`))},function(){throw new Error(`AppData version ${r} doesn't exist`)}))}catch(r){return Promise.reject(r)}};function v(r){return{...r,version:"0.2.0"}}function h(r){return{...r,version:"0.1.0"}}function m(r){return{...r,version:"0.1.0"}}function p(r){return{...r,version:"0.5.0"}}let d;export{i as LATEST_APP_DATA_VERSION,a as LATEST_ORDER_CLASS_METADATA_VERSION,u as LATEST_QUOTE_METADATA_VERSION,c as LATEST_REFERRER_METADATA_VERSION,p as createAppDataDoc,m as createOrderClassMetadata,v as createQuoteMetadata,h as createReferrerMetadata,_ as getAppDataSchema,s as latest,n as v0_1_0,t as v0_2_0,e as v0_3_0,o as v0_4_0,s as v0_5_0,l as validateAppDataDoc}; | ||
//# sourceMappingURL=index.module.js.map |
@@ -8,2 +8,5 @@ import { AnyAppDataDocVersion, latest } from './generatedTypes'; | ||
}): latest.Referrer; | ||
export declare function createOrderClassMetadata(params: { | ||
orderClass: latest.OrderClass1; | ||
}): latest.OrderClass; | ||
export declare function createAppDataDoc(params: { | ||
@@ -10,0 +13,0 @@ appCode?: latest.AppCode; |
{ | ||
"name": "@cowprotocol/app-data", | ||
"version": "0.0.2-RC.0", | ||
"version": "0.0.2-RC.1", | ||
"description": "CowProtocol AppData schema definitions", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45415
343