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

@copicake/copicake-js

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@copicake/copicake-js - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

16

CHANGELOG.md

@@ -0,1 +1,17 @@

## [1.1.6](https://github.com/Copicake/copicake-js/compare/v1.1.5...v1.1.6) (2024-08-04)
### Bug Fixes
* added AnyChange ([43a07c7](https://github.com/Copicake/copicake-js/commit/43a07c7b1c4b8ef11223d0abe2731a7575bd22e9))
* bump version ([0977596](https://github.com/Copicake/copicake-js/commit/0977596c0bc5186d20bc2208e5fae6b70561e978))
## [1.1.5](https://github.com/Copicake/copicake-js/compare/v1.1.4...v1.1.5) (2024-06-05)
### Bug Fixes
* added prepublish command ([ad79c80](https://github.com/Copicake/copicake-js/commit/ad79c807c94504b54a8ab454977233483ec231f3))
* bump version ([5a86aba](https://github.com/Copicake/copicake-js/commit/5a86abab81c0a5634961c925f9a54799f81d137c))
## [1.1.4](https://github.com/Copicake/copicake-js/compare/v1.1.3...v1.1.4) (2024-06-05)

@@ -2,0 +18,0 @@

4

dist/tsc/lib/image.d.ts

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

import { Rendering, Change, Options } from "../types/Rendering";
import { Rendering, AnyChange, Options } from "../types/Rendering";
interface ICreate {
template_id: string;
changes: Change[];
changes: AnyChange[];
options?: Options;

@@ -6,0 +6,0 @@ }

@@ -18,5 +18,7 @@ "use strict";

},
}).then((response) => {
})
.then((response) => {
return response.json();
}).then((response) => {
})
.then((response) => {
return response.data;

@@ -51,5 +53,7 @@ });

body: JSON.stringify(data),
}).then((response) => {
})
.then((response) => {
return response.json();
}).then((response) => {
})
.then((response) => {
return response.data;

@@ -56,0 +60,0 @@ });

@@ -1,12 +0,8 @@

export declare type Change = ImageChange | TextChange;
export declare type ImageFormat = "png" | "jpg";
export interface ImageChange {
export declare type BaseChange = {
name: string;
src?: string;
}
export interface TextChange {
name: string;
text?: string;
fill?: string;
}
stroke?: string;
};
export declare type AnyChange = BaseChange & Record<string, unknown>;
export interface Options {

@@ -21,3 +17,3 @@ format?: ImageFormat;

status: Status;
changes?: Change[];
changes?: AnyChange[];
options?: Options;

@@ -24,0 +20,0 @@ template_id: string;

{
"name": "@copicake/copicake-js",
"version": "0.0.7",
"version": "0.0.8",
"description": "Copicake JS Library",

@@ -5,0 +5,0 @@ "author": "EragonJ <eragonj@eragonj.me>",

import unfetch from "isomorphic-unfetch";
import { Rendering, Change, Options } from "../types/Rendering";
import { Rendering, AnyChange, Options } from "../types/Rendering";
import {

@@ -14,3 +14,3 @@ IMAGE_API_END_POINT,

template_id: string;
changes: Change[];
changes: AnyChange[];
options?: Options;

@@ -38,7 +38,9 @@ }

},
}).then((response) => {
return response.json();
}).then((response) => {
return response.data;
});
})
.then((response) => {
return response.json();
})
.then((response) => {
return response.data;
});
}

@@ -74,7 +76,9 @@

body: JSON.stringify(data),
}).then((response) => {
return response.json();
}).then((response) => {
return response.data;
});
})
.then((response) => {
return response.json();
})
.then((response) => {
return response.data;
});
}

@@ -81,0 +85,0 @@ }

@@ -1,16 +0,11 @@

export type Change = ImageChange | TextChange;
export type ImageFormat = "png" | "jpg";
export interface ImageChange {
export type BaseChange = {
name: string;
src?: string;
}
export interface TextChange {
name: string;
text?: string;
fill?: string;
}
stroke?: string;
};
export type AnyChange = BaseChange & Record<string, unknown>;
export interface Options {

@@ -27,3 +22,3 @@ format?: ImageFormat;

status: Status;
changes?: Change[];
changes?: AnyChange[];
options?: Options;

@@ -30,0 +25,0 @@ template_id: string;

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