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

brighterscript

Package Overview
Dependencies
Maintainers
1
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brighterscript - npm Package Compare versions

Comparing version 0.22.0 to 0.22.1

9

CHANGELOG.md

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

## [0.22.1] - 2020-12-14
### Fixed
- small bug introduced by vscode-languageserver causing crashes anytime negative range values are provided.
## [0.22.0] - 2020-11-23

@@ -743,2 +749,3 @@ ### Added

[0.21.0]: https://github.com/rokucommunity/brighterscript/compare/v0.20.1...v0.21.0
[0.22.0]: https://github.com/rokucommunity/brighterscript/compare/v0.21.0...v0.22.0
[0.22.0]: https://github.com/rokucommunity/brighterscript/compare/v0.21.0...v0.22.0
[0.22.1]: https://github.com/rokucommunity/brighterscript/compare/v0.22.0...v0.22.1

@@ -1,2 +0,2 @@

import { Range } from 'vscode-languageserver';
import type { Range } from 'vscode-languageserver';
import type { Token } from '../lexer/Token';

@@ -6,2 +6,6 @@ import { TokenKind } from '../lexer/TokenKind';

import { LiteralExpression, CallExpression, DottedGetExpression, VariableExpression } from '../parser/Expression';
/**
* A range that points to nowhere. Used to give non-null ranges to programmatically-added source code.
* (Hardcoded range to prevent circular dependency issue in `../util.ts`
*/
export declare const interpolatedRange: Range;

@@ -8,0 +12,0 @@ export declare function createToken<T extends TokenKind>(kind: T, text?: string, range?: Range): Token & {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createCall = exports.createBooleanLiteral = exports.createInvalidLiteral = exports.createFloatLiteral = exports.createIntegerLiteral = exports.createStringLiteral = exports.createDottedIdentifier = exports.createIdentifier = exports.createToken = exports.interpolatedRange = void 0;
const vscode_languageserver_1 = require("vscode-languageserver");
const TokenKind_1 = require("../lexer/TokenKind");
const Expression_1 = require("../parser/Expression");
exports.interpolatedRange = vscode_languageserver_1.Range.create(-1, -1, -1, -1);
/**
* A range that points to nowhere. Used to give non-null ranges to programmatically-added source code.
* (Hardcoded range to prevent circular dependency issue in `../util.ts`
*/
exports.interpolatedRange = {
start: {
line: -1,
character: -1
},
end: {
line: -1,
character: -1
}
};
function createToken(kind, text, range = exports.interpolatedRange) {

@@ -9,0 +21,0 @@ return {

2

dist/parser/Statement.js

@@ -31,3 +31,3 @@ "use strict";

*/
range = util_1.util.createRange(-1, -1, -1, -1)) {
range = creators_1.interpolatedRange) {
super();

@@ -34,0 +34,0 @@ this.range = range;

@@ -5,3 +5,3 @@ "use strict";

const lexer_1 = require("../../lexer");
const vscode_languageserver_1 = require("vscode-languageserver");
const creators_1 = require("../../astUtils/creators");
/* A set of utilities to be used while writing tests for the BRS parser. */

@@ -20,3 +20,3 @@ /**

isReserved: lexer_1.ReservedWords.has((text || '').toLowerCase()),
range: vscode_languageserver_1.Range.create(-9, -9, -9, -9),
range: creators_1.interpolatedRange,
leadingWhitespace: ''

@@ -23,0 +23,0 @@ };

{
"name": "brighterscript",
"version": "0.22.0",
"version": "0.22.1",
"description": "A superset of Roku's BrightScript language.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -262,7 +262,3 @@ # BrighterScript

## Sponsors
![image](https://user-images.githubusercontent.com/2544493/96571912-377af280-129a-11eb-8295-49eb12e54aeb.png)
## Special Thanks
Special thanks to the [brs](https://github.com/sjbarag/brs) project for its fantastic work on its blazing fast BrightScript parser which was used as the foundation for the BrighterScript parser.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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