Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
@@ -5,2 +5,9 @@ # Changelog | ||
## [1.0.0-alpha.2](https://github.com/wikibus/alcaeus/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2020-01-17) | ||
### Bug Fixes | ||
* **resource:** getArray should only return resources ([aa1f860](https://github.com/wikibus/alcaeus/commit/aa1f86034193ef2ca29bbc7e4a6214f4798d14f3)) | ||
## [1.0.0-alpha.1](https://github.com/wikibus/alcaeus/compare/v1.0.0-alpha.0...v1.0.0-alpha.1) (2020-01-17) | ||
@@ -7,0 +14,0 @@ |
@@ -5,3 +5,2 @@ import { ResourceFactory } from '@tpluscode/rdfine'; | ||
import { createHydraResourceMixin } from './Resources/HydraResource'; | ||
import { hydra } from './Vocabs'; | ||
import RdfProcessor from './MediaTypeProcessors/RdfProcessor'; | ||
@@ -17,3 +16,2 @@ import * as mixins from './ResourceFactoryDefaults'; | ||
}; | ||
export const Vocab = hydra; | ||
export const Hydra = (rootSelectors = defaultRootSelectors, mediaTypeProcessors = defaultProcessors) => { | ||
@@ -20,0 +18,0 @@ let factory; |
@@ -35,2 +35,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
const values = this._node.out(propertyNode) | ||
.filter(({ term }) => term.termType === 'NamedNode' || term.termType === 'BlankNode') | ||
.map(obj => { | ||
@@ -37,0 +38,0 @@ return this._create(obj); |
@@ -17,3 +17,2 @@ "use strict"; | ||
const HydraResource_1 = require("./Resources/HydraResource"); | ||
const Vocabs_1 = require("./Vocabs"); | ||
const RdfProcessor_1 = __importDefault(require("./MediaTypeProcessors/RdfProcessor")); | ||
@@ -31,3 +30,2 @@ const mixins = __importStar(require("./ResourceFactoryDefaults")); | ||
}; | ||
exports.Vocab = Vocabs_1.hydra; | ||
exports.Hydra = (rootSelectors = defaultRootSelectors, mediaTypeProcessors = defaultProcessors) => { | ||
@@ -34,0 +32,0 @@ let factory; |
@@ -40,2 +40,3 @@ "use strict"; | ||
const values = this._node.out(propertyNode) | ||
.filter(({ term }) => term.termType === 'NamedNode' || term.termType === 'BlankNode') | ||
.map(obj => { | ||
@@ -42,0 +43,0 @@ return this._create(obj); |
{ | ||
"name": "alcaeus", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "Hydra Core hypermedia-aware client library", | ||
@@ -5,0 +5,0 @@ "main": "lib/node/index.node.js", |
@@ -1,2 +0,1 @@ | ||
/// <reference types="rdfjs__namespace" /> | ||
import { Alcaeus } from './alcaeus'; | ||
@@ -7,3 +6,2 @@ import RdfProcessor from './MediaTypeProcessors/RdfProcessor'; | ||
export { ResourceIdentifier } from '@tpluscode/rdfine'; | ||
export declare const Vocab: import("@rdfjs/namespace").NamespaceBuilder; | ||
export declare const Hydra: (rootSelectors?: import("./RootSelectors").IRootSelector[], mediaTypeProcessors?: { | ||
@@ -10,0 +8,0 @@ RDF: RdfProcessor; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
328364
4432