You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

angular-expressions

Package Overview
Dependencies
Maintainers
10
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-expressions - npm Package Versions

13

1.1.8

Diff
e
edi9999
published 1.1.8 •

Changelog

Source

1.1.8

Update typescript typings (add filters).

e
edi9999
published 1.1.7 •

Changelog

Source

1.1.7

Add typescript typings (for compile, Parser and Lexer).

e
edi9999
published 1.1.6 •

Changelog

Source

1.1.6

Published by mistake (same as 1.1.7), but without dependency changes

e
edi9999
published 1.1.5 •

Changelog

Source

1.1.5

Add specific error when a filter is not defined.

e
edi9999
published 1.1.4 •

Changelog

Source

1.1.4

Bugfix : When using an assignment expression, such as b = a, the value will always be set in the scope, not in the locals.

With this code :

const scope = { a: 10 };
const locals = { b: 5 };
compile("b=a")(scope, locals);

The scope value will be { a: 10, b: 10 } after the evaluation.

In previous versions, the value would be assigned to the locals, meaning locals would be { b: 10 }

e
edi9999
published 1.1.3 •

Changelog

Source

1.1.3

Bugfix : Make module ES5 compatible (to work in IE10 for example), by using var instead of const

e
edi9999
published 1.1.2 •

Changelog

Source

1.1.2

  • Disallow access to prototype chain (CVE-2021-21277)
e
edi9999
published 1.1.1 •

Changelog

Source

1.1.1

Previous version was published with ES6 feature, now the published JS uses ES5 only

e
edi9999
published 1.1.0 •

Changelog

Source

1.1.0

  • Add support for special characters by using the following :
function validChars(ch) {
  return (
    (ch >= "a" && ch <= "z") ||
    (ch >= "A" && ch <= "Z") ||
    ch === "_" ||
    ch === "$" ||
    "ÀÈÌÒÙàèìòùÁÉÍÓÚáéíóúÂÊÎÔÛâêîôûÃÑÕãñõÄËÏÖÜŸäëïöüÿß".indexOf(ch) !== -1
  );
}
evaluate = compile("être_embarassé", {
  isIdentifierStart: validChars,
  isIdentifierContinue: validChars,
});

evaluate({ être_embarassé: "Ping" });
e
edi9999
published 1.0.1 •

Changelog

Source

1.0.1

  • Disallow access to prototype chain (CVE-2020-5219)