Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alcaeus

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alcaeus - npm Package Compare versions

Comparing version 0.4.6 to 0.5.0

types/tests/MediaTypeProcessors/RdfProcessor-spec.d.ts

2

lib/es/MediaTypeProcessors/RdfProcessor.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc