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 1.0.0-beta.0 to 1.0.0-beta.1

_book/api-documentation/class.html

2

alcaeus.d.ts

@@ -16,2 +16,3 @@ /// <reference types="rdfjs__sink-map" />

export interface HydraClient<D extends DatasetIndexed = DatasetIndexed> {
log: (msg: string) => void;
baseUri?: string;

@@ -38,2 +39,3 @@ rootSelectors: RootSelector[];

defaultHeaders: HeadersInit | (() => HeadersInit);
log: (msg: string) => void;
readonly dataset: D;

@@ -40,0 +42,0 @@ readonly factory: ResourceFactory<DatasetCore, R>;

5

alcaeus.js

@@ -16,3 +16,3 @@ import Parsers from '@rdfjs/sink-map';

if (quadStream == null) {
console.warn(`No parser found for media type ${response.mediaType}`);
alcaeus.log(`No parser found for media type ${response.mediaType}`);
return null;

@@ -38,2 +38,3 @@ }

this.defaultHeaders = {};
this.log = () => { };
this.__apiDocumentations = new Map();

@@ -93,3 +94,3 @@ this.rootSelectors = rootSelectors;

if (!response.apiDocumentationLink) {
console.warn(`Resource ${response.requestedUri} does not expose API Documentation link`);
this.log(`Resource ${response.requestedUri} does not expose API Documentation link`);
return;

@@ -96,0 +97,0 @@ }

@@ -5,2 +5,9 @@ # Changelog

## [1.0.0-beta.1](https://github.com/wikibus/alcaeus/compare/v1.0.0-beta.0...v1.0.0-beta.1) (2020-04-23)
### Bug Fixes
* add required transitive dependencies to package.json ([57ab8ce](https://github.com/wikibus/alcaeus/commit/57ab8cea9c690ce4e8e25ce0a4dad2ca1e3dab49))
## [1.0.0-beta.0](https://github.com/wikibus/alcaeus/compare/v1.0.0-alpha.16...v1.0.0-beta.0) (2020-04-23)

@@ -7,0 +14,0 @@

import cf from 'clownface';
import $rdf from 'rdf-ext';
import $rdf from '@rdfjs/data-model';
import ResourceGraph from './ResourceGraph';

@@ -4,0 +4,0 @@ import ResponseWrapperImpl from './ResponseWrapper';

{
"name": "alcaeus",
"version": "1.0.0-beta.0",
"version": "1.0.0-beta.1",
"description": "Hydra Core hypermedia-aware client library",

@@ -38,2 +38,3 @@ "main": "main.js",

"dependencies": {
"@rdfjs/data-model": "^1.1.2",
"@rdfjs/formats-common": "^2.1.0",

@@ -43,2 +44,3 @@ "@rdfjs/sink-map": "^1.0.1",

"@tpluscode/rdfine": "^0.4.8",
"clownface": "^0.12.3",
"es6-url-template": "^1.0.3",

@@ -62,5 +64,6 @@ "esm": "^3.2.25",

"@commitlint/config-conventional": "^7.0.0",
"@rdfjs/data-model": "^1.1.2",
"@rdfjs/namespace": "^1.1.0",
"@rdfjs/parser-jsonld": "^1.2.0",
"@rdfjs/parser-n3": "^1.1.3",
"@tpluscode/eslint-config": "^0.1",
"@tpluscode/rdf-string": "^0.2.10",

@@ -85,2 +88,3 @@ "@types/clownface": "^0.12.13",

"eslint": "^6.0.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jest": "^22.14.1",

@@ -109,4 +113,3 @@ "gitbook-cli": "^2.3.2",

"*.{js,ts}": [
"eslint --quiet --fix --ignore-path .eslintignore",
"git add"
"eslint --quiet --fix --ignore-path .eslintignore"
]

@@ -113,0 +116,0 @@ },

@@ -15,3 +15,3 @@ # Alcaeus [![npm version](https://badge.fury.io/js/alcaeus.svg)](https://badge.fury.io/js/alcaeus) [![Build Status](https://travis-ci.org/wikibus/Alcaeus.svg?branch=master)](https://travis-ci.org/wikibus/Alcaeus) [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=QitnVVJlZEJBWkExWGVYOXZ0Ymo1NkNvSHY1R1VCbEllcU1FbHU0VWdFQT0tLW14Wk5UcjdlZ1luK0Z1S1NwWWhLQXc9PQ==--e9ceda4d03cff10bd985c21e8ecce9d540aa65a1)](https://www.browserstack.com/automate/public-build/QitnVVJlZEJBWkExWGVYOXZ0Ymo1NkNvSHY1R1VCbEllcU1FbHU0VWdFQT0tLW14Wk5UcjdlZ1luK0Z1S1NwWWhLQXc9PQ==--e9ceda4d03cff10bd985c21e8ecce9d540aa65a1) [![Code coverage](https://codecov.io/gh/wikibus/alcaeus/branch/master/graph/badge.svg)](https://codecov.io/gh/wikibus/alcaeus)

``` bash
yarn add alcaeus
npm i -S alcaeus
```

@@ -22,4 +22,10 @@

``` js
import {Hydra} from 'alcaeus';
import Hydra from 'alcaeus';
import Parser from '@rdfjs/parser-n3';
Hydra.parsers.set('text/turtle', Parser);
// Alternatively, use an import which loads @rdfjs/parsers-common
// import Hydra from 'alcaeus/with-parsers'
const representation = await Hydra.loadResource('http://example.com/resource');

@@ -29,5 +35,4 @@ const rootResource = representation.root;

// contains supported classes, operations, etc.
const apiDocs = rootResource.apiDocumentation;
const apiDocs = Hydra.apiDocumentations[0];
// same as rootResource['@id']
const id = rootResource.id;

@@ -34,0 +39,0 @@ ```

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

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

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

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