Comparing version
@@ -34,4 +34,2 @@ 'use strict'; | ||
var _dialects2 = _interopRequireDefault(_dialects); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -116,5 +114,5 @@ | ||
(0, _dialects2.default)('pop', '2.0', _dialect2.default); | ||
(0, _dialects.registerPRTDialectByNameAndVersion)('pop', '2.0', _dialect2.default); | ||
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | ||
exports.default = PRTComponent; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.getPRTDialectByNameAndVersion = exports.PRTInvalidDialectType = exports.PRTAlreadyRegisteredDialect = exports.PRTInvalidDialectVersion = exports.PRTInvalidDialectNameType = undefined; | ||
exports.getPRTDialectByNameAndVersion = exports.registerPRTDialectByNameAndVersion = exports.PRTInvalidDialectType = exports.PRTAlreadyRegisteredDialect = exports.PRTInvalidDialectVersion = exports.PRTInvalidDialectNameType = undefined; | ||
@@ -70,4 +70,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
/*:: type Register = (PRTPlainText, PRTPlainText, PRTDialectV2_0) => void;*/ | ||
var registerPRTDialectByNameAndVersion /*: Register*/ = function registerPRTDialectByNameAndVersion(reference, version, dialect) { | ||
var registerPRTDialectByNameAndVersion /*: Register*/ = exports.registerPRTDialectByNameAndVersion = function registerPRTDialectByNameAndVersion(reference, version, dialect) { | ||
var dialects = void 0; | ||
@@ -109,5 +108,2 @@ /* If reference is not a string */ | ||
return dialect; | ||
}; | ||
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | ||
exports.default = registerPRTDialectByNameAndVersion; | ||
}; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.registerPRTDialectByNameAndVersion = exports.getPRTDialectByNameAndVersion = undefined; | ||
exports.PRTInvalidVersionString = exports.PRTInvalidVersionType = exports.PRTUnknownVersion = exports.PRTInvalidDialectType = exports.PRTAlreadyRegisteredDialect = exports.PRTInvalidDialectVersion = exports.PRTInvalidDialectNameType = exports.PRTInvalidDocumentType = exports.PRTInvalidContentType = exports.PRTError = exports.registerPRTDialectByNameAndVersion = exports.getPRTDialectByNameAndVersion = undefined; | ||
@@ -15,8 +15,18 @@ var _component = require('./component'); | ||
var _dialects2 = _interopRequireDefault(_dialects); | ||
var _error = require('./error'); | ||
var _error2 = _interopRequireDefault(_error); | ||
var _markups = require('./markups'); | ||
var _version = require('./version'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | ||
/* Export everything */ | ||
/* Import errors */ | ||
/* Import components */ | ||
@@ -28,2 +38,12 @@ exports.default = _component2.default; | ||
exports.getPRTDialectByNameAndVersion = _dialects.getPRTDialectByNameAndVersion; | ||
exports.registerPRTDialectByNameAndVersion = _dialects2.default; | ||
exports.registerPRTDialectByNameAndVersion = _dialects.registerPRTDialectByNameAndVersion; | ||
exports.PRTError = _error2.default; | ||
exports.PRTInvalidContentType = _component.PRTInvalidContentType; | ||
exports.PRTInvalidDocumentType = _component.PRTInvalidDocumentType; | ||
exports.PRTInvalidDialectNameType = _dialects.PRTInvalidDialectNameType; | ||
exports.PRTInvalidDialectVersion = _dialects.PRTInvalidDialectVersion; | ||
exports.PRTAlreadyRegisteredDialect = _dialects.PRTAlreadyRegisteredDialect; | ||
exports.PRTInvalidDialectType = _dialects.PRTInvalidDialectType; | ||
exports.PRTUnknownVersion = _markups.PRTUnknownVersion; | ||
exports.PRTInvalidVersionType = _version.PRTInvalidVersionType; | ||
exports.PRTInvalidVersionString = _version.PRTInvalidVersionString; |
@@ -6,2 +6,3 @@ 'use strict'; | ||
}); | ||
exports.PRTPOPInvalidPropName = exports.PRTPOPInvalidAttribute = exports.PRTPOPInvalidTagName = exports.PRTPOPInvalidIdentifier = exports.PRTPOPDialect = exports.PRTInvalidAttributeValueType = exports.PRTInvalidAttributeKey = exports.PRTInvalidAttributesType = exports.PRTInvalidIdentifierType = exports.PRTInvalidElementType = exports.PRTInvalidElementsType = undefined; | ||
@@ -12,5 +13,28 @@ var _dialect = require('./dialect'); | ||
var _markup = require('./markup'); | ||
var _dialect3 = require('./dialects/pop/dialect'); | ||
var _dialect4 = _interopRequireDefault(_dialect3); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | ||
/* Export everything */ | ||
exports.default = _dialect2.default; /* Import class */ | ||
exports.default = _dialect2.default; | ||
/* Export errors */ | ||
/* Import class */ | ||
exports.PRTInvalidElementsType = _markup.PRTInvalidElementsType; | ||
exports.PRTInvalidElementType = _markup.PRTInvalidElementType; | ||
exports.PRTInvalidIdentifierType = _markup.PRTInvalidIdentifierType; | ||
exports.PRTInvalidAttributesType = _markup.PRTInvalidAttributesType; | ||
exports.PRTInvalidAttributeKey = _markup.PRTInvalidAttributeKey; | ||
exports.PRTInvalidAttributeValueType = _markup.PRTInvalidAttributeValueType; | ||
exports.PRTPOPDialect = _dialect4.default; | ||
exports.PRTPOPInvalidIdentifier = _dialect3.PRTPOPInvalidIdentifier; | ||
exports.PRTPOPInvalidTagName = _dialect3.PRTPOPInvalidTagName; | ||
exports.PRTPOPInvalidAttribute = _dialect3.PRTPOPInvalidAttribute; | ||
exports.PRTPOPInvalidPropName = _dialect3.PRTPOPInvalidPropName; |
{ | ||
"name": "prt-client", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Client side reference implementation of the PRT protocol", | ||
@@ -8,3 +8,3 @@ "author": "We Got POP Ltd", | ||
"private": false, | ||
"files": [ | ||
"files":[ | ||
"lib", | ||
@@ -68,10 +68,5 @@ "v2.js" | ||
"transform-flow-comments", | ||
[ | ||
"module-resolver", | ||
{ | ||
"root": [ | ||
"./src" | ||
] | ||
} | ||
] | ||
["module-resolver", { | ||
"root": ["./src"] | ||
}] | ||
] | ||
@@ -83,8 +78,9 @@ }, | ||
"global": { | ||
"branches": 95, | ||
"functions": 95, | ||
"lines": 95, | ||
"statements": 95 | ||
"branches": 100, | ||
"functions": 100, | ||
"lines": 100, | ||
"statements": 100 | ||
} | ||
}, | ||
"verbose": true, | ||
"modulePaths": [ | ||
@@ -91,0 +87,0 @@ "src" |
52620
4.83%825
4.04%