Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cowprotocol/app-data

Package Overview
Dependencies
Maintainers
8
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cowprotocol/app-data - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2-RC.0

dist/generatedTypes/v0.5.0.d.ts

11

dist/generatedTypes/index.d.ts

@@ -5,8 +5,9 @@ import * as v0_1_0 from './v0.1.0';

import * as v0_4_0 from './v0.4.0';
export * as latest from './v0.4.0';
export declare const LATEST_APP_DATA_VERSION = "0.4.0";
import * as v0_5_0 from './v0.5.0';
export * as latest from './v0.5.0';
export declare const LATEST_APP_DATA_VERSION = "0.5.0";
export declare const LATEST_QUOTE_METADATA_VERSION = "0.2.0";
export declare const LATEST_REFERRER_METADATA_VERSION = "0.1.0";
export declare type LatestAppDataDocVersion = v0_4_0.AppDataRootSchema;
export declare type AnyAppDataDocVersion = v0_4_0.AppDataRootSchema | v0_3_0.AppDataRootSchema | v0_2_0.AppDataRootSchema | v0_1_0.AppDataRootSchema;
export { v0_4_0, v0_3_0, v0_2_0, v0_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 e={__proto__:null},t={__proto__:null},n={__proto__:null},o={__proto__:null};const s="0.4.0",i="0.2.0",c="0.1.0";function u(r,e){try{var t=r()}catch(r){return e(r)}return t&&t.then?t.then(void 0,e):t}const a=function(e){try{let n;function t(r){return n?r:{success:!!s(e),errors:s.errors?_.errorsText(s.errors):void 0}}const{version:o}=e;_||(_=new r);let s=_.getSchema(o);const i=function(){if(!s){function r(r){if(n)return r;_.addSchema(e,o),s=_.getSchema(o)}let e;const t=u(function(){return Promise.resolve(f(o)).then(function(r){e=r})},function(r){if(r instanceof Error)return n=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(c){return Promise.reject(c)}},f=function(r){try{if(!/^\d+\.\d+\.\d+$/.test(r))throw new Error(`AppData version ${r} is not a valid version`);return Promise.resolve(u(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 l(r){return{...r,version:"0.2.0"}}function v(r){return{...r,version:"0.1.0"}}function h(r){return{...r,version:"0.4.0"}}let _;export{s as LATEST_APP_DATA_VERSION,i as LATEST_QUOTE_METADATA_VERSION,c as LATEST_REFERRER_METADATA_VERSION,h as createAppDataDoc,l as createQuoteMetadata,v as createReferrerMetadata,f as getAppDataSchema,o as latest,e as v0_1_0,t as v0_2_0,n as v0_3_0,o as v0_4_0,a as validateAppDataDoc};
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};
//# sourceMappingURL=index.module.js.map
{
"name": "@cowprotocol/app-data",
"version": "0.0.1",
"version": "0.0.2-RC.0",
"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

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