New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@underlay/namespaces

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@underlay/namespaces - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

8

lib/ul.d.ts

@@ -17,3 +17,11 @@ declare const _default: Readonly<{

readonly target: "http://underlay.org/ns/target";
readonly map: "http://underlay.org/ns/map";
readonly projection: "http://underlay.org/ns/projection";
readonly dereference: "http://underlay.org/ns/dereference";
readonly match: "http://underlay.org/ns/match";
readonly case: "http://underlay.org/ns/case";
readonly construction: "http://underlay.org/ns/construction";
readonly slot: "http://underlay.org/ns/slot";
readonly injection: "http://underlay.org/ns/injection";
}>;
export default _default;

@@ -17,3 +17,11 @@ const ul = {

target: "http://underlay.org/ns/target",
map: "http://underlay.org/ns/map",
projection: "http://underlay.org/ns/projection",
dereference: "http://underlay.org/ns/dereference",
match: "http://underlay.org/ns/match",
case: "http://underlay.org/ns/case",
construction: "http://underlay.org/ns/construction",
slot: "http://underlay.org/ns/slot",
injection: "http://underlay.org/ns/injection",
};
export default Object.freeze(ul);

2

package.json
{
"name": "@underlay/namespaces",
"version": "0.1.3",
"version": "0.2.0",
"type": "module",

@@ -5,0 +5,0 @@ "description": "URI constants for commonly used Underlay namespaces",

@@ -11,2 +11,6 @@ # namespaces

- [Usage](#usage)
- [API](#api)
- [XSD terms](#xsd-terms)
- [RDF terms](#rdf-terms)
- [Underlay terms](#underlay-terms)
- [Contributing](#contributing)

@@ -31,2 +35,89 @@ - [License](#license)

## API
### XSD terms
The datatypes from the [XML Schema Definition Language](https://www.w3.org/TR/xmlschema11-2/) are exported as a read-only `xsd` object:
```typescript
const xsd: {
readonly string: "http://www.w3.org/2001/XMLSchema#string"
readonly boolean: "http://www.w3.org/2001/XMLSchema#boolean"
readonly Decimal: "http://www.w3.org/2001/XMLSchema#decimal"
readonly integer: "http://www.w3.org/2001/XMLSchema#integer"
readonly double: "http://www.w3.org/2001/XMLSchema#double"
readonly float: "http://www.w3.org/2001/XMLSchema#float"
readonly date: "http://www.w3.org/2001/XMLSchema#date"
readonly time: "http://www.w3.org/2001/XMLSchema#time"
readonly dateTime: "http://www.w3.org/2001/XMLSchema#dateTime"
readonly dateTimeStamp: "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
readonly gYear: "http://www.w3.org/2001/XMLSchema#gYear"
readonly gMonth: "http://www.w3.org/2001/XMLSchema#gMonth"
readonly gDay: "http://www.w3.org/2001/XMLSchema#gDay"
readonly gYearMonth: "http://www.w3.org/2001/XMLSchema#gYearMonth"
readonly gMonthDay: "http://www.w3.org/2001/XMLSchema#gMonthDay"
readonly duration: "http://www.w3.org/2001/XMLSchema#duration"
readonly yearMonthDuration: "http://www.w3.org/2001/XMLSchema#yearMonthDuration"
readonly dayTimeDuration: "http://www.w3.org/2001/XMLSchema#dayTimeDuration"
readonly byte: "http://www.w3.org/2001/XMLSchema#byte"
readonly short: "http://www.w3.org/2001/XMLSchema#short"
readonly int: "http://www.w3.org/2001/XMLSchema#int"
readonly long: "http://www.w3.org/2001/XMLSchema#long"
readonly unsignedByte: "http://www.w3.org/2001/XMLSchema#unsignedByte"
readonly unsignedShort: "http://www.w3.org/2001/XMLSchema#unsignedShort"
readonly unsignedInt: "http://www.w3.org/2001/XMLSchema#unsignedInt"
readonly unsignedLong: "http://www.w3.org/2001/XMLSchema#unsignedLong"
readonly positiveInteger: "http://www.w3.org/2001/XMLSchema#positiveInteger"
readonly nonNegativeInteger: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
readonly nonPositiveInteger: "http://www.w3.org/2001/XMLSchema#nonPositiveInteger"
readonly hexBinary: "http://www.w3.org/2001/XMLSchema#hexBinary"
readonly base64Binary: "http://www.w3.org/2001/XMLSchema#base64Binary"
readonly anyURI: "http://www.w3.org/2001/XMLSchema#anyURI"
readonly language: "http://www.w3.org/2001/XMLSchema#language"
readonly normalizedString: "http://www.w3.org/2001/XMLSchema#normalizedString"
readonly token: "http://www.w3.org/2001/XMLSchema#token"
readonly NMTOKEN: "http://www.w3.org/2001/XMLSchema#NMTOKEN"
readonly Name: "http://www.w3.org/2001/XMLSchema#Name"
readonly NCNames: "http://www.w3.org/2001/XMLSchema#NCNames"
}
```
### RDF terms
A selection of terms from the RDF Schema vocabulary are exported as a read-only `rdf` object:
```typescript
const rdf: {
readonly type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
readonly first: "http://www.w3.org/1999/02/22-rdf-syntax-ns#first"
readonly rest: "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"
readonly langString: "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"
readonly JSON: "http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON"
}
```
### Underlay terms
The terms in the Underlay namespace are exported as a read-only `ul` object:
```typescript
const ul: {
readonly class: "http://underlay.org/ns/class"
readonly key: "http://underlay.org/ns/key"
readonly value: "http://underlay.org/ns/value"
readonly uri: "http://underlay.org/ns/uri"
readonly literal: "http://underlay.org/ns/literal"
readonly datatype: "http://underlay.org/ns/datatype"
readonly product: "http://underlay.org/ns/product"
readonly component: "http://underlay.org/ns/component"
readonly coproduct: "http://underlay.org/ns/coproduct"
readonly option: "http://underlay.org/ns/option"
readonly reference: "http://underlay.org/ns/reference"
readonly some: "http://underlay.org/ns/some"
readonly none: "http://underlay.org/ns/none"
readonly source: "http://underlay.org/ns/source"
readonly target: "http://underlay.org/ns/target"
}
```
## Contributing

@@ -33,0 +124,0 @@

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