Comparing version 0.4.6 to 0.5.0
@@ -0,4 +1,4 @@ | ||
import * as JsonLdSerializer from '@rdfjs/serializer-jsonld'; | ||
import { promises as jsonld } from 'jsonld'; | ||
import * as $rdf from 'rdf-ext'; | ||
import * as JsonLdSerializer from 'rdf-serializer-jsonld-ext'; | ||
import * as stringToStream from 'string-to-stream'; | ||
@@ -5,0 +5,0 @@ import * as Constants from '../Constants'; |
@@ -0,3 +1,3 @@ | ||
import * as JsonLdParser from '@rdfjs/parser-jsonld'; | ||
import * as $rdf from 'rdf-ext'; | ||
import * as JsonLdParser from 'rdf-parser-jsonld'; | ||
import { MediaTypes } from './Constants'; | ||
@@ -4,0 +4,0 @@ export class ParserFactory { |
@@ -14,2 +14,5 @@ import { Core } from '../../Constants'; | ||
} | ||
get isLink() { | ||
return this.types.contains(Core.Vocab('Link')); | ||
} | ||
} | ||
@@ -16,0 +19,0 @@ return RdfProperty; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const JsonLdSerializer = require("@rdfjs/serializer-jsonld"); | ||
const jsonld_1 = require("jsonld"); | ||
const $rdf = require("rdf-ext"); | ||
const JsonLdSerializer = require("rdf-serializer-jsonld-ext"); | ||
const stringToStream = require("string-to-stream"); | ||
@@ -7,0 +7,0 @@ const Constants = require("../Constants"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const JsonLdParser = require("@rdfjs/parser-jsonld"); | ||
const $rdf = require("rdf-ext"); | ||
const JsonLdParser = require("rdf-parser-jsonld"); | ||
const Constants_1 = require("./Constants"); | ||
@@ -6,0 +6,0 @@ class ParserFactory { |
@@ -16,2 +16,5 @@ "use strict"; | ||
} | ||
get isLink() { | ||
return this.types.contains(Constants_1.Core.Vocab('Link')); | ||
} | ||
} | ||
@@ -18,0 +21,0 @@ return RdfProperty; |
{ | ||
"name": "alcaeus", | ||
"version": "0.4.6", | ||
"version": "0.5.0", | ||
"description": "Hydra Core hypermedia-aware client library", | ||
@@ -44,13 +44,14 @@ "main": "lib/node/index.js", | ||
"dependencies": { | ||
"@rdfjs/parser-jsonld": "^1.1.1", | ||
"@rdfjs/serializer-jsonld": "^1.2.0", | ||
"core-decorators": "^0.19.0", | ||
"es6-url-template": "^1.0.3", | ||
"isomorphic-fetch": "^2.2.1", | ||
"jsonld": "^1.1.0", | ||
"jsonld": "^1.4.0", | ||
"parse-link-header": "^1.0.1", | ||
"rdf-ext": "^1.0.0", | ||
"rdf-parser-jsonld": "^1.1.0", | ||
"rdf-serializer-jsonld-ext": "^1.2.0", | ||
"string-to-stream": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"@rdfjs/parser-n3": "^1.1.2", | ||
"@types/core-decorators": "^0.10.32", | ||
@@ -81,4 +82,2 @@ "@types/isomorphic-fetch": "0.0.34", | ||
"karma-webpack": "^2.0.5", | ||
"rdf-parser-n3": "^1.0.0", | ||
"rdf-serializer-jsonld-ext": "^1.2.0", | ||
"sinon": "^3.2.1", | ||
@@ -85,0 +84,0 @@ "ts-loader": "^2.3.3", |
@@ -16,3 +16,3 @@ import { IHydraResponse } from './HydraResponse'; | ||
mediaTypeProcessors: { | ||
[name: string]: IMediaTypeProcessor; | ||
[name: string]: any; | ||
}; | ||
@@ -19,0 +19,0 @@ constructor(rootSelectors: IRootSelector[], mediaTypeProcessors: { |
@@ -1,2 +0,2 @@ | ||
export declare type HydraTerm = 'apiDocumentation' | 'ApiDocumentation' | 'title' | 'description' | 'method' | 'Class' | 'member' | 'PartialCollectionView' | 'Collection' | 'view' | 'first' | 'next' | 'last' | 'previous' | 'entrypoint' | 'SupportedProperty' | 'supportedProperty' | 'SupportedOperation' | 'supportedClass' | 'supportedOperation' | 'expects' | 'returns' | 'readable' | 'writable' | 'required' | 'property' | 'statusCodes' | 'operation' | 'Operation' | 'mapping' | 'StatusCodeDescription' | 'IriTemplate' | 'IriTemplateMapping' | 'code' | 'variable' | 'variableRepresentation' | 'template' | 'BasicRepresentation' | 'ExplicitRepresentation' | 'totalItems'; | ||
export declare type HydraTerm = 'apiDocumentation' | 'ApiDocumentation' | 'title' | 'description' | 'method' | 'Class' | 'member' | 'PartialCollectionView' | 'Collection' | 'view' | 'first' | 'next' | 'last' | 'previous' | 'entrypoint' | 'SupportedProperty' | 'supportedProperty' | 'SupportedOperation' | 'supportedClass' | 'supportedOperation' | 'expects' | 'returns' | 'readable' | 'writable' | 'required' | 'property' | 'statusCodes' | 'operation' | 'Operation' | 'mapping' | 'StatusCodeDescription' | 'IriTemplate' | 'IriTemplateMapping' | 'code' | 'variable' | 'variableRepresentation' | 'template' | 'BasicRepresentation' | 'ExplicitRepresentation' | 'totalItems' | 'Link'; | ||
export declare namespace Core { | ||
@@ -3,0 +3,0 @@ const Context: { |
@@ -58,2 +58,3 @@ import { IHydraResponse } from '../HydraResponse'; | ||
supportedOperations: SupportedOperation[]; | ||
isLink: boolean; | ||
} | ||
@@ -60,0 +61,0 @@ export interface IOperation { |
@@ -8,2 +8,3 @@ import { Constructor } from '../Mixin'; | ||
readonly supportedOperations: any; | ||
readonly isLink: boolean; | ||
readonly id: any; | ||
@@ -10,0 +11,0 @@ readonly types: import("../../TypeCollection").default; |
@@ -16,3 +16,3 @@ import { IHydraResponse } from './HydraResponse'; | ||
mediaTypeProcessors: { | ||
[name: string]: IMediaTypeProcessor; | ||
[name: string]: any; | ||
}; | ||
@@ -19,0 +19,0 @@ constructor(rootSelectors: IRootSelector[], mediaTypeProcessors: { |
@@ -1,2 +0,2 @@ | ||
export declare type HydraTerm = 'apiDocumentation' | 'ApiDocumentation' | 'title' | 'description' | 'method' | 'Class' | 'member' | 'PartialCollectionView' | 'Collection' | 'view' | 'first' | 'next' | 'last' | 'previous' | 'entrypoint' | 'SupportedProperty' | 'supportedProperty' | 'SupportedOperation' | 'supportedClass' | 'supportedOperation' | 'expects' | 'returns' | 'readable' | 'writable' | 'required' | 'property' | 'statusCodes' | 'operation' | 'Operation' | 'mapping' | 'StatusCodeDescription' | 'IriTemplate' | 'IriTemplateMapping' | 'code' | 'variable' | 'variableRepresentation' | 'template' | 'BasicRepresentation' | 'ExplicitRepresentation' | 'totalItems'; | ||
export declare type HydraTerm = 'apiDocumentation' | 'ApiDocumentation' | 'title' | 'description' | 'method' | 'Class' | 'member' | 'PartialCollectionView' | 'Collection' | 'view' | 'first' | 'next' | 'last' | 'previous' | 'entrypoint' | 'SupportedProperty' | 'supportedProperty' | 'SupportedOperation' | 'supportedClass' | 'supportedOperation' | 'expects' | 'returns' | 'readable' | 'writable' | 'required' | 'property' | 'statusCodes' | 'operation' | 'Operation' | 'mapping' | 'StatusCodeDescription' | 'IriTemplate' | 'IriTemplateMapping' | 'code' | 'variable' | 'variableRepresentation' | 'template' | 'BasicRepresentation' | 'ExplicitRepresentation' | 'totalItems' | 'Link'; | ||
export declare namespace Core { | ||
@@ -3,0 +3,0 @@ const Context: { |
@@ -58,2 +58,3 @@ import { IHydraResponse } from '../HydraResponse'; | ||
supportedOperations: SupportedOperation[]; | ||
isLink: boolean; | ||
} | ||
@@ -60,0 +61,0 @@ export interface IOperation { |
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
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
278501
33
275
4873
+ Added@rdfjs/parser-jsonld@^1.1.1
+ Added@rdfjs/namespace@1.1.0(transitive)
+ Added@rdfjs/parser-jsonld@1.3.1(transitive)
+ Added@rdfjs/serializer-jsonld@1.2.3(transitive)
+ Added@rdfjs/sink@1.0.3(transitive)
+ Added@types/http-link-header@1.0.7(transitive)
+ Added@types/node@18.19.68(transitive)
+ Addedcross-fetch@3.2.0(transitive)
+ Addedhttp-link-header@1.1.3(transitive)
+ Addedjsonld-context-parser@2.4.0(transitive)
+ Addedjsonld-streaming-parser@2.4.3(transitive)
+ Addedjsonparse@1.3.1(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedrdf-data-factory@1.1.2(transitive)
+ Addedrelative-to-absolute-iri@1.0.7(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedundici-types@5.26.5(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removedrdf-parser-jsonld@^1.1.0
- Removedrdf-serializer-jsonld-ext@^1.2.0
- Removedbluebird@3.7.2(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedes6-promise@2.3.0(transitive)
- Removedjsonld@0.4.12(transitive)
- Removedpkginfo@0.4.1(transitive)
- Removedrdf-data-model@1.0.0(transitive)
- Removedrdf-parser-jsonld@1.1.0(transitive)
- Removedrdf-serializer-jsonld@1.1.2(transitive)
- Removedrdf-serializer-jsonld-ext@1.4.0(transitive)
- Removedrdf-sink@1.0.1(transitive)
- Removedtypedarray@0.0.6(transitive)
Updatedjsonld@^1.4.0