@dicebear/avatars-jdenticon-sprites
Advanced tools
Comparing version 4.5.4 to 4.6.0-rc.1
@@ -1,10 +0,14 @@ | ||
import Random from '@dicebear/avatars/lib/random'; | ||
declare type Options = { | ||
hues?: number[]; | ||
colorLightness?: [number, number]; | ||
grayscaleLightness?: [number, number]; | ||
colorSaturation?: number; | ||
grayscaleSaturation?: number; | ||
}; | ||
export default function (random: Random, options?: Options): string; | ||
export {}; | ||
/** | ||
* -------------------------------------------------------------------------- | ||
* DiceBear Jdenticon (@dicebear/avatars-jdenticon-sprites) | ||
* | ||
* Code licensed under MIT (https://github.com/dicebear/dicebear/blob/v4/packages/avatars-jdenticon-sprites/LICENSE) | ||
* Copyright (c) 2021 Florian Körner | ||
* -------------------------------------------------------------------------- | ||
*/ | ||
declare let create: import("@dicebear/avatars").StyleCreate<import("./options").Options>, meta: import("@dicebear/avatars").StyleMeta, schema: import("json-schema").JSONSchema7; | ||
export { create, meta, schema }; | ||
export { Options } from './options'; | ||
declare const _default: import("@dicebear/avatars").SpriteCollection<import("./options").Options>; | ||
/** @deprecated will be removed in Version 5.0 */ | ||
export default _default; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
/** | ||
* -------------------------------------------------------------------------- | ||
* DiceBear Jdenticon (@dicebear/avatars-jdenticon-sprites) | ||
* | ||
* Code licensed under MIT (https://github.com/dicebear/dicebear/blob/v4/packages/avatars-jdenticon-sprites/LICENSE) | ||
* Copyright (c) 2021 Florian Körner | ||
* -------------------------------------------------------------------------- | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// @ts-ignore | ||
const jdenticon_1 = __importDefault(require("jdenticon")); | ||
function default_1(random, options = {}) { | ||
jdenticon_1.default.config = { | ||
hues: options.hues, | ||
lightness: { | ||
color: options.colorLightness, | ||
grayscale: options.grayscaleLightness | ||
}, | ||
saturation: { | ||
color: options.colorSaturation, | ||
grayscale: options.grayscaleSaturation | ||
} | ||
}; | ||
return jdenticon_1.default | ||
.toSvg(random.seed, 50, 0) | ||
.replace('width="50"', '') | ||
.replace('height="50"', ''); | ||
} | ||
exports.default = default_1; | ||
//# sourceMappingURL=index.js.map | ||
exports.schema = exports.meta = exports.create = void 0; | ||
const avatars_1 = require("@dicebear/avatars"); | ||
const core_1 = require("./core"); | ||
let { create, meta, schema } = core_1.style; | ||
exports.create = create; | ||
exports.meta = meta; | ||
exports.schema = schema; | ||
/** @deprecated will be removed in Version 5.0 */ | ||
exports.default = avatars_1.utils.style.createLegacyWrapper(core_1.style); |
{ | ||
"name": "@dicebear/avatars-jdenticon-sprites", | ||
"version": "4.5.4", | ||
"version": "4.6.0-rc.1", | ||
"description": "Jdenticon sprite collection for DiceBear Avatars", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"scripts": { | ||
"prepublishOnly": "npm run build", | ||
"prebuild": "rm -rf lib/ || true", | ||
"build": "tsc", | ||
"test": "echo 'No tests available'" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/DiceBear/avatars.git" | ||
}, | ||
"keywords": [ | ||
@@ -24,25 +12,49 @@ "dicebear", | ||
], | ||
"author": "DiceBear <opensource@dicebear.com>", | ||
"license": "MIT", | ||
"homepage": "https://dicebear.com", | ||
"bugs": { | ||
"url": "https://github.com/DiceBear/avatars/issues" | ||
"url": "https://github.com/dicebear/dicebear/issues" | ||
}, | ||
"homepage": "https://github.com/DiceBear/avatars/tree/v4/packages/avatars-jdenticon-sprites#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dicebear/dicebear.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Florian Körner <contact@florian-koerner.com>", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"LICENSE", | ||
"lib" | ||
], | ||
"scripts": { | ||
"test": "jest", | ||
"prepublishOnly": "npm run build", | ||
"prebuild": "rm -rf lib/ || true", | ||
"build": "yarn run build:schema && yarn run build:options && yarn run build:ts", | ||
"build:ts": "tsc", | ||
"build:schema": "json-dereference -s schema.json -o src/schema.json", | ||
"build:options": "json2ts -i schema.json -o src/options.ts" | ||
}, | ||
"dependencies": { | ||
"@types/json-schema": "^7.0.7", | ||
"jdenticon": "^2.1.1" | ||
}, | ||
"devDependencies": { | ||
"@dicebear/avatars": "^4.6.0-rc.1", | ||
"@tsconfig/node12": "^1.0.7", | ||
"@types/jest": "^26.0.22", | ||
"@types/node": "^10.11.6", | ||
"jdenticon": "^2.1.1", | ||
"jest": "^26.6.3", | ||
"json-dereference-cli": "^0.1.2", | ||
"ts-jest": "^26.5.4", | ||
"typescript": "^4.2.3" | ||
}, | ||
"peerDependencies": { | ||
"@dicebear/avatars": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@dicebear/avatars": "^4.5.4" | ||
}, | ||
"files": [ | ||
"LICENSE", | ||
"lib" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "0b843257a7f833c2930a077c10e7520fa94a4f3a" | ||
"gitHead": "eecfcb0dfd45493e63efbd15e6261e3446575fda" | ||
} |
@@ -1,4 +0,4 @@ | ||
<h1 align="center"><img src="https://avatars.dicebear.com/api/jdenticon/1.svg" width="124" /> <br />jdenticon</h1> | ||
<h1 align="center"><img src="https://dicebear.com/api/jdenticon/1.svg" width="124" /> <br />jdenticon</h1> | ||
<p align="center"> | ||
<strong>Avatar Style for <a href="https://avatars.dicebear.com/">DiceBear Avatars</a>.</strong><br /> | ||
<strong>Avatar Style for <a href="https://dicebear.com/">DiceBear Avatars</a>.</strong><br /> | ||
<a href="https://github.com/dmester/jdenticon">Jdenticon</a> wrapper for DiceBear Avatars. | ||
@@ -8,17 +8,5 @@ </p> | ||
<p align="center"> | ||
<a href="https://github.com/dicebear/avatars/blob/master/LICENSE" target="_blank"> | ||
<img src="https://img.shields.io/github/license/dicebear/avatars.svg?style=flat-square" alt="License"> | ||
</a> | ||
<a href="https://www.npmjs.com/package/@dicebear/avatars-jdenticon-sprites" target="_blank-sprites"> | ||
<img src="https://img.shields.io/npm/v/@dicebear/avatars-jdenticon-sprites.svg?style=flat-square" alt="Latest Version"> | ||
</a> | ||
<a href="https://github.com/dicebear/avatars/stargazers" target="_blank"> | ||
<img src="https://img.shields.io/github/stars/dicebear/avatars?style=flat-square" alt="Stargazers"> | ||
</a> | ||
</p> | ||
<p align="center"> | ||
<a href="https://avatars.dicebear.com/styles/jdenticon"> | ||
<a href="https://dicebear.com/styles/jdenticon"> | ||
Read Documentation | ||
</a> | ||
</p> |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7487
10
97
1
3
9
12
+ Added@types/json-schema@^7.0.7