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

@gram-data/gram-ast

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gram-data/gram-ast - npm Package Compare versions

Comparing version 0.3.2 to 0.3.4

10

dist/index.d.ts

@@ -174,3 +174,3 @@ /**

*/
export declare type GramRecordValue = GramLiteral | GramLiteral[] | GramRecord;
export declare type GramRecordValue = GramLiteral | GramLiteral[] | GramPropertyMap;
/**

@@ -193,3 +193,3 @@ * A GramRecord is an array of name/value pairs, or simply GramProperty[].

*/
export declare const isGramRecord: (v: GramRecordValue) => v is GramRecord;
export declare const isGramRecord: (v: any) => v is GramRecord;
export declare const isGramLiteralArray: (v: GramRecordValue) => v is GramLiteral[];

@@ -237,3 +237,3 @@ /**

*/
export declare type GramLiteral = BooleanLiteral | StringLiteral | TaggedLiteral | IntegerLiteral | MeasurementLiteral | DecimalLiteral | HexadecimalLiteral | OctalLiteral;
export declare type GramLiteral = BooleanLiteral | StringLiteral | TaggedTextLiteral | IntegerLiteral | MeasurementLiteral | DecimalLiteral | HexadecimalLiteral | OctalLiteral;
/**

@@ -244,3 +244,3 @@ * Type guard for GramLiteral.

*/
export declare const isLiteral: (o: any) => o is TextLiteral;
export declare const isLiteral: (o: any) => o is GramLiteral;
/**

@@ -376,3 +376,3 @@ * Represents a boolean literal, like `true` or `false`.

*/
export declare const isTaggedLiteral: (o: any) => o is TaggedTextLiteral;
export declare const isTaggedLiteral: (o: any) => o is TaggedLiteral;
/**

@@ -379,0 +379,0 @@ * Represents an ISO8601 calendar date, like `2020-02-02`.

{
"name": "@gram-data/gram-ast",
"description": "AST definitions for gram data graphs",
"author": "Andreas Kollegger",

@@ -11,3 +12,3 @@ "keywords": [

],
"version": "0.3.2",
"version": "0.3.4",
"license": "MIT",

@@ -56,8 +57,8 @@ "repository": {

"devDependencies": {
"@types/jest": "^26.0.15",
"@types/jest": "^26.0.18",
"@types/shortid": "^0.0.29",
"@types/unist": "^2.0.3",
"@typescript-eslint/parser": "^4.8.2",
"husky": "^4.3.0",
"npm-check-updates": "^10.2.2",
"@typescript-eslint/parser": "^4.9.1",
"husky": "^4.3.5",
"npm-check-updates": "^10.2.3",
"npm-run-all": "^4.1.5",

@@ -73,3 +74,3 @@ "rollup-plugin-node-builtins": "^2.1.2",

},
"gitHead": "f97da4fded27f795f417a1547d9c761c521c8778",
"gitHead": "27de40df779bc903e8873563db12f7db477e4ad3",
"publishConfig": {

@@ -76,0 +77,0 @@ "access": "public"

@@ -225,3 +225,3 @@ /**

*/
export type GramRecordValue = GramLiteral | GramLiteral[] | GramRecord;
export type GramRecordValue = GramLiteral | GramLiteral[] | GramPropertyMap;

@@ -246,3 +246,3 @@ /**

*/
export const isGramRecord = (v: GramRecordValue): v is GramRecord =>
export const isGramRecord = (v: any): v is GramRecord =>
Array.isArray(v) && isGramProperty(v[0]);

@@ -302,3 +302,3 @@

| StringLiteral
| TaggedLiteral
| TaggedTextLiteral
| IntegerLiteral

@@ -315,3 +315,3 @@ | MeasurementLiteral

*/
export const isLiteral = (o: any): o is TextLiteral =>
export const isLiteral = (o: any): o is GramLiteral =>
!!o.type && !!o.value && o.type !== 'property';

@@ -489,3 +489,3 @@

*/
export const isTaggedLiteral = (o: any): o is TaggedTextLiteral =>
export const isTaggedLiteral = (o: any): o is TaggedLiteral =>
!!o.type && !!o.value && !!o.tag && o.type === 'tagged';

@@ -492,0 +492,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

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