@email-types/data
Advanced tools
Comparing version 1.0.0-canary.2 to 1.0.0-canary.3
@@ -6,2 +6,26 @@ # Change Log | ||
## 1.0.0-canary.3 - 2019-12-03 | ||
#### 🚀 Updates | ||
- Add typecheck fn, kebab case doctype keys, combine mso properties (#12) | ||
([1daf2c3](https://github.com/email-types/email-types/commit/1daf2c3)), closes | ||
[#12](https://github.com/email-types/email-types/issues/12) | ||
- Adds data for doctypes (#11) | ||
([6a504e3](https://github.com/email-types/email-types/commit/6a504e3)), closes | ||
[#11](https://github.com/email-types/email-types/issues/11) | ||
#### 🛠 Internals | ||
- Remove msotype and stylis-plugin-msotype packages (#10) | ||
([2b59bb6](https://github.com/email-types/email-types/commit/2b59bb6)), closes | ||
[#10](https://github.com/email-types/email-types/issues/10) | ||
**Note:** Version bump only for package @email-types/data | ||
# Change Log | ||
All notable changes to this project will be documented in this file. See | ||
[Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
## 1.0.0-canary.2 - 2019-11-17 | ||
@@ -23,7 +47,2 @@ | ||
# Change Log | ||
All notable changes to this project will be documented in this file. See | ||
[Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
## 1.0.0-canary.1 - 2019-11-10 | ||
@@ -30,0 +49,0 @@ |
export * from './mso'; | ||
export * from './misc/doctypes'; | ||
export * from './utils/create'; |
@@ -10,2 +10,16 @@ "use strict"; | ||
exports[key] = _mso[key]; | ||
}); | ||
var _doctypes = require("./misc/doctypes"); | ||
Object.keys(_doctypes).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
exports[key] = _doctypes[key]; | ||
}); | ||
var _create = require("./utils/create"); | ||
Object.keys(_create).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
exports[key] = _create[key]; | ||
}); |
import * as MSO from '../types/mso'; | ||
import { alternatives } from './alternatives'; | ||
import { standard } from './standard'; | ||
export { MSO }; | ||
export * from './groups'; | ||
export * from './operators'; | ||
export * from './versions'; | ||
export * from './features'; | ||
export * from './properties'; | ||
export * from './syntaxes'; | ||
export * from './types'; | ||
export { alternatives, standard, MSO }; | ||
export declare const properties: { | ||
[x: string]: Readonly<MSO.Property>; | ||
}; | ||
export * from './versions'; |
@@ -5,8 +5,5 @@ "use strict"; | ||
var _exportNames = { | ||
properties: true, | ||
MSO: true, | ||
alternatives: true, | ||
standard: true | ||
MSO: true | ||
}; | ||
exports.MSO = exports.properties = void 0; | ||
exports.MSO = void 0; | ||
@@ -17,10 +14,10 @@ var MSO = _interopRequireWildcard(require("../types/mso")); | ||
var _alternatives = require("./alternatives"); | ||
var _groups = require("./groups"); | ||
exports.alternatives = _alternatives.alternatives; | ||
Object.keys(_groups).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
exports[key] = _groups[key]; | ||
}); | ||
var _standard = require("./standard"); | ||
exports.standard = _standard.standard; | ||
var _operators = require("./operators"); | ||
@@ -34,18 +31,10 @@ | ||
var _versions = require("./versions"); | ||
var _properties = require("./properties"); | ||
Object.keys(_versions).forEach(function (key) { | ||
Object.keys(_properties).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
exports[key] = _versions[key]; | ||
exports[key] = _properties[key]; | ||
}); | ||
var _features = require("./features"); | ||
Object.keys(_features).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
exports[key] = _features[key]; | ||
}); | ||
var _syntaxes = require("./syntaxes"); | ||
@@ -67,9 +56,12 @@ | ||
var _versions = require("./versions"); | ||
Object.keys(_versions).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
exports[key] = _versions[key]; | ||
}); | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
const properties = { ..._alternatives.alternatives, | ||
..._standard.standard | ||
}; | ||
exports.properties = properties; | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } |
@@ -1,2 +0,3 @@ | ||
import { Operators } from '../types/mso'; | ||
export declare const operators: Operators; | ||
import * as MSO from '../types/mso'; | ||
export declare const operators: Record<"and" | "greaterThan" | "greaterThanOrEqual" | "lessThan" | "lessThanOrEqual" | "not" | "or", MSO.Operator>; | ||
export default operators; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.operators = void 0; | ||
const operators = { | ||
exports.default = exports.operators = void 0; | ||
var _create = require("../utils/create"); | ||
const validate = (0, _create.create)(); | ||
const operators = validate({ | ||
and: { | ||
@@ -62,3 +66,5 @@ syntax: '&', | ||
} | ||
}; | ||
exports.operators = operators; | ||
}); | ||
exports.operators = operators; | ||
var _default = operators; | ||
exports.default = _default; |
@@ -1,2 +0,3 @@ | ||
import { Syntaxes } from '../types/mso'; | ||
export declare const syntaxes: Syntaxes; | ||
import * as MSO from '../types/mso'; | ||
export declare const syntaxes: Record<"border-art" | "border-style" | "color" | "complex-line-style" | "font-size" | "generic-font-family" | "gap-line-style" | "int-number-style" | "line-width" | "ms-excel-pattern-name" | "ms-word-pattern-name" | "named-color" | "number-style" | "simple-line-style", MSO.Syntax>; | ||
export default syntaxes; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.syntaxes = void 0; | ||
const syntaxes = { | ||
exports.default = exports.syntaxes = void 0; | ||
var _create = require("../utils/create"); | ||
const validate = (0, _create.create)(); | ||
const syntaxes = validate({ | ||
'border-art': { | ||
@@ -48,3 +52,5 @@ syntax: 'apples | arched-scallops | baby-pacifier | baby-rattle | balloons-3-color | balloons-hot-air | basic-black-dashes | basic-black-dots | basic-black-squares | basic-thin-lines | basic-white-dashes | basic-white-dots | basic-white-squares | basic-wide-inline | basic-wide-midline | basic-wide-outline | bats | birds | birds-flight | cabins | cake-slice | candy-corn | celtic-knotwork | certificate-banner | chain-link | champagne-bottle | checked-bar-black | checked-bar-color | checkered | christmas-tree | circles-lines | circles-rectangles | classical-wave | clocks | compass | confetti | confetti-grays | confetti-outline | confetti-streamers | confetti-white | corner-triangles | coupon-cutout-dashes | coupon-cutout-dots | crazy-maze | creatures-butterfly | creatures-fish | creatures-insects | creatures-lady-bug | cross-stitch | cup | deco-arch | deco-arch-color | deco-blocks | diamonds-gray | double-d | double-diamonds | earth-1 | earth-2 | eclipsing-squares-1 | eclipsing-squares-2 | eggs-black | fans | film | firecrackers | flowers-block-print | flowers-daisies | flowers-modern-1 | flowers-modern-2 | flowers-pansy | flowers-red-rose | flowers-roses | flowers-teacup | flowers-tiny | gems | gingerbread-man | gradient | handmade-1 | handmade-2 | heart-balloon | heart-gray | hearts | heebie-jeebies | holly | house-funky | hypnotic | ice-cream-cones | light-bulb | lightning-1 | lightning-2 | maple-leaf | maple-muffins | map-pins | marquee | marquee-toothed | moons | mosaic | music-notes | northwest | ovals | packages | palms-black | palms-color | paper-clips | papyrus | party-favor | party-glass | pencils | people | people-hats | people-waving | poinsettias | postage-stamp | pumpkin-1 | push-pin-note-1 | push-pin-note-2 | pyramids | pyramids-above | quadrants | rings | safari | sawtooth | sawtooth-gray | scared-cat | seattle | shadowed-squares | sharks-teeth | shorebird-tracks | skyrocket | snowflake-fancy | snowflakes | sombrero | southwest | stars | stars-3d | stars-black | stars-shadowed | stars-top | sun | swirligig | torn-paper | torn-paper-black | trees | triangle-party | triangles | tribal-1 | tribal-2 | tribal-3 | tribal-4 | tribal-5 | tribal-6 | twisted-lines-1 | twisted-lines-2 | vine | waveline | weaving-angles | weaving-braid | weaving-ribbon | weaving-strips | white-flowers | woodwork | x-illusions | zany-triangles | zig-zag | zig-zag-stitch' | ||
} | ||
}; | ||
exports.syntaxes = syntaxes; | ||
}); | ||
exports.syntaxes = syntaxes; | ||
var _default = syntaxes; | ||
exports.default = _default; |
@@ -1,2 +0,3 @@ | ||
import { CssDataTypes } from '../types/mso'; | ||
export declare const types: CssDataTypes; | ||
import * as MSO from '../types/mso'; | ||
export declare const cssDataTypes: Record<"string" | "number" | "integer" | "url" | "length" | "percentage", MSO.CssDataType>; | ||
export default cssDataTypes; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.types = void 0; | ||
const types = { | ||
exports.default = exports.cssDataTypes = void 0; | ||
var _create = require("../utils/create"); | ||
const validate = (0, _create.create)(); | ||
const cssDataTypes = validate({ | ||
integer: { | ||
@@ -42,3 +46,5 @@ links: [{ | ||
} | ||
}; | ||
exports.types = types; | ||
}); | ||
exports.cssDataTypes = cssDataTypes; | ||
var _default = cssDataTypes; | ||
exports.default = _default; |
@@ -1,2 +0,3 @@ | ||
import { Versions } from '../types/mso'; | ||
export declare const versions: Versions; | ||
import * as MSO from '../types/mso'; | ||
export declare const versions: Record<"ie" | "mso" | "mso9" | "mso10" | "mso11" | "mso12" | "mso14" | "mso15" | "mso16", MSO.Version>; | ||
export default versions; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.versions = void 0; | ||
const versions = { | ||
exports.default = exports.versions = void 0; | ||
var _create = require("../utils/create"); | ||
const validate = (0, _create.create)(); | ||
const versions = validate({ | ||
ie: { | ||
@@ -42,3 +46,5 @@ syntax: 'IE', | ||
} | ||
}; | ||
exports.versions = versions; | ||
}); | ||
exports.versions = versions; | ||
var _default = versions; | ||
exports.default = _default; |
@@ -1,5 +0,2 @@ | ||
declare type Link = { | ||
title: 'Microsoft' | 'MDN' | (string & {}); | ||
url: string; | ||
}; | ||
import { Link } from './common'; | ||
export declare type Property = { | ||
@@ -11,17 +8,14 @@ syntax: string; | ||
shorthand: boolean; | ||
features: string[]; | ||
groups?: string[]; | ||
}; | ||
export declare type Properties = Record<string, Readonly<Property>>; | ||
export interface Syntax { | ||
syntax: string; | ||
} | ||
export declare type Syntaxes = Record<string, Readonly<Syntax>>; | ||
export interface Feature { | ||
export interface Group { | ||
title: string; | ||
url: string; | ||
} | ||
export declare type Features = Record<string, Readonly<Feature>>; | ||
export declare type CssDataTypes = Record<string, { | ||
export declare type CssDataType = { | ||
links: Readonly<Link>[]; | ||
}>; | ||
}; | ||
export interface Operator { | ||
@@ -32,3 +26,2 @@ syntax: string; | ||
} | ||
export declare type Operators = Record<string, Readonly<Operator>>; | ||
export interface Version { | ||
@@ -38,3 +31,1 @@ syntax: string; | ||
} | ||
export declare type Versions = Record<string, Readonly<Version>>; | ||
export {}; |
{ | ||
"name": "@email-types/data", | ||
"version": "1.0.0-canary.2", | ||
"version": "1.0.0-canary.3", | ||
"description": "@email-types/data", | ||
@@ -9,4 +9,4 @@ "main": "dist/index.js", | ||
"dist", | ||
"index.d.ts", | ||
"index.js", | ||
"doctypes.d.ts", | ||
"doctypes.js", | ||
"mso.d.ts", | ||
@@ -16,4 +16,4 @@ "mso.js" | ||
"scripts": { | ||
"build": "TARGET=cjs babel --root-mode upward -x .ts,.tsx src -d dist", | ||
"dev": "TARGET=cjs babel --root-mode upward -x .ts,.tsx src -d dist -w" | ||
"build": "babel --root-mode upward -x .ts,.tsx src -d dist", | ||
"dev": "babel --root-mode upward -x .ts,.tsx src -d dist -w" | ||
}, | ||
@@ -31,3 +31,3 @@ "publishConfig": { | ||
"license": "MIT", | ||
"gitHead": "f2dc7f282c1fbd3e528af7feb2088ec68304bfc7" | ||
"gitHead": "140cc6527f444423c728a1d71018eb73c7e796a7" | ||
} |
@@ -1,5 +0,4 @@ | ||
[msotype]: | ||
https://github.com/email-types/email-types/tree/master/packages/msotype | ||
[msotype]: https://github.com/email-types/email-types/msotype | ||
[stylis-plugin-mso]: | ||
https://github.com/email-types/email-types/tree/master/packages/stylis-plugin-mso | ||
https://github.com/email-types/email-types/stylis-plugin-mso | ||
@@ -6,0 +5,0 @@ # Email Types Data |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
107217
33
3206
61
2