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

@tlon/sigil-js

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tlon/sigil-js - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

19

dist/index.d.ts
import stringRenderer from './stringRenderer';
import reactRenderer from './reactRenderer';
import reactImageRenderer from './reactImageRenderer';
declare type Config = {
patp: string;
colors?: string[];
attributes?: {};
style?: {
height?: string;
width?: string;
};
class?: string;
size?: number;
width?: number;
height?: number;
margin?: boolean;
strokeScalingFunction?: Function;
renderer?: Function;
};
import { Config } from '../types';
declare const sigil: (props: Config) => any;
export { sigil, stringRenderer, reactRenderer, reactImageRenderer, };
export { sigil, stringRenderer, reactRenderer, reactImageRenderer };

2

dist/lib.d.ts

@@ -5,2 +5,2 @@ declare const deepClone: (v: any) => any;

declare const isUndefined: (v: any) => boolean;
export { deepClone, chunkStr, compose, isUndefined, };
export { deepClone, chunkStr, compose, isUndefined };
{
"name": "@tlon/sigil-js",
"version": "1.4.0",
"version": "1.4.1",
"private": false,

@@ -11,2 +11,4 @@ "license": "MIT",

"@types/react": "^16.9.23",
"husky": "^4.2.3",
"prettier": "^1.19.1",
"tsdx": "^0.12.3",

@@ -29,3 +31,22 @@ "typescript": "^3.8.3"

"lint:fix": "tsdx lint src --fix"
},
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
}
},
"prettier": {
"arrowParens": "avoid",
"bracketSpacing": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 100,
"proseWrap": "always",
"quoteProps": "as-needed",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
}
# sigil-js
[![Version](https://img.shields.io/npm/v/urbit-sigil-js.svg)](https://www.npmjs.com/package/urbit-sigil-js)
![Minzipped Size](https://img.shields.io/bundlephobia/minzip/urbit-sigil-js.svg)
[![Version](https://img.shields.io/npm/v/urbit-sigil-js.svg)](https://www.npmjs.com/package/@tlon/sigil-js)
![Minzipped Size](https://img.shields.io/bundlephobia/minzip/@tlon/sigil-js.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

@@ -9,3 +9,3 @@

[→ NPM](https://www.npmjs.com/package/urbit-sigil-js)
[→ NPM](https://www.npmjs.com/package/@tlon/sigil-js)

@@ -12,0 +12,0 @@ Each of the ~4.2 billion points on Azimuth is unique. Each one has a pronounceable, easily memorized name, something like ~ravmel-ropdyl. Sigils visualize these names – there are as many unique Sigils as there are Azimuth points. `sigil-js` is a javascript library that converts one of these names into its corresponding Sigil.

@@ -0,10 +1,13 @@

declare module '@tlon/sigil-js'
type Attributes = {
style?: {
width?: string
height?: string
[key: string]:string
}
version?: string
class?: string
width?: string
height?: string
viewBox?: string
fill?: string | number
fill?: string
xmlns?: string

@@ -14,3 +17,3 @@ id?: string

d?: string
stroke?: string | number
stroke?: string
'stroke-width'?: string

@@ -26,5 +29,5 @@ x1?: string

y?: string
transform?: string;
'vector-effect'?: string;
'data-isGeon'?: string
transform?: string
'vector-effect'?: string
'dataisgeon'?: string
}

@@ -34,4 +37,4 @@

name: string
type: string
value: string
type?: string
value?: string
attributes: Attributes

@@ -41,5 +44,23 @@ children: Ast[]

type Config = {
patp: string;
colors?: [string, string];
attributes?: Attributes;
style?: {
[key: string]:string
};
class?: string;
size?: number;
width?: number;
height?: number;
margin?: boolean;
strokeScalingFunction?: Function;
renderer?: Function;
icon?: boolean;
};
export {
Attributes,
Ast,
Config,
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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