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

firebase-bolt

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-bolt - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

3

docs/changelog.txt

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

changed - Path expressions should now use path template syntax instead of wildcard variables.
changed - Deprecate fn(x) = exp; function definition format (with deprecation warning).
fixed - Parse errors are more granular - reporting the source of the error line rather than just failing a whole type or path statement.

@@ -53,10 +53,15 @@ # Firebase Bolt Security and Modeling Language

Property names in type statements should be valid Identifiers (see below). If you need
to use any other character in a property name, you can enclose them in quotes (note
that Firebase allows any character in a path *except* for `.`, `$`, `#`, `[`, `[`, `/`,
or control characters).
Built-in base types are also similar to JavaScript types:
String - Stings
String - Character strings
Number - Integer or floating point
Boolean - Values true or false
Boolean - Values `true` or `false`
Object - A structured object containing named properties.
Any - Every non-null value is of type Any.
Null - Value null (same as absence of a value, or deleted)
Null - Value `null` (same as absence of a value, or deleted)
Map<Key, Value> - A generic type - maps string valued keys to corresponding

@@ -274,2 +279,7 @@ values (similar to an Object type).

# Identifiers
Identifiers in expressions, property names, and path captured parts, must begin with one of
alphabetic, _ or $ characters and can contain any alphabetic, numeric, _ or $.
# Expressions

@@ -281,2 +291,5 @@

- Binary operators: +, -, *, /, %
- String constants can be expressed using single or double quotes and can
include Hex escape characters (\xXX), Unicode escape characters (\uXXXX)
or special escape characters \b, \f, \n, \r, or \t.

@@ -283,0 +296,0 @@ # Global variables

@@ -40,3 +40,8 @@ /*

function error(s) {
lastMessage = errorString(s);
var err = errorString(s);
// De-dup identical messages
if (err === lastMessage) {
return;
}
lastMessage = err;
lastError = lastMessage;

@@ -50,3 +55,8 @@ if (!silenceOutput) {

function warn(s) {
lastMessage = errorString(s);
var err = errorString(s);
// De-dup identical messages
if (err === lastMessage) {
return;
}
lastMessage = err;
if (!silen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GJvb2xlYW4ge1xuICByZXR1cm4gZXJyb3JDb3VudCA+IDA7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBlcnJvclN1bW1hcnkoKTogc3RyaW5nIHtcbiAgaWYgKGVycm9yQ291bnQgPT09IDEpIHtcbiAgICByZXR1cm4gbGFzdEVycm9yO1xuICB9XG5cbiAgaWYgKGVycm9yQ291bnQgIT09IDApIHtcbiAgICByZXR1cm4gXCJGYXRhbCBlcnJvcnM6IFwiICsgZXJyb3JDb3VudDtcbiAgfVxuICByZXR1cm4gXCJcIjtcbn1cbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
{
"name": "firebase-bolt",
"description": "Firebase Bolt Security and Modeling Language Compiler",
"version": "0.7.0",
"version": "0.7.1",
"author": {

@@ -6,0 +6,0 @@ "name": "Firebase",

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

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

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

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