Socket
Socket
Sign inDemoInstall

@webqit/subscript

Package Overview
Dependencies
2
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.7 to 2.1.8

2

package.json

@@ -11,3 +11,3 @@ {

"homepage": "https://webqit.io/tooling/subscript",
"version": "2.1.7",
"version": "2.1.8",
"license": "MIT",

@@ -14,0 +14,0 @@ "repository": {

@@ -87,3 +87,3 @@ # Subscript Function Proposal

```js
function fn**() {}
function** fn() {}
// much like the syntax for generator functions - function fn*() {}

@@ -96,3 +96,3 @@ ```

let var1 = 10;
function fn**() {
function** fn() {
console.log(var1);

@@ -121,3 +121,3 @@ }

let var1 = 10, var2 = 0;
function fn**() {
function** fn() {
let localVar1 = var1 * 2;

@@ -146,3 +146,3 @@ let localVar2 = var2 * 2;

// As function declaration
function fn**() {}
function** fn() {}
```

@@ -331,3 +331,3 @@

```js
function fn**() {
function** fn() {
function sum( a, b ) {

@@ -524,3 +524,3 @@ callCount ++;

var prefix = '';
function fn**() {
function** fn() {
for ( let index = start; index < items.length; index ++ ) {

@@ -561,3 +561,3 @@ console.log( `Current iteration index is: ${ index }, and value is: '${ items[ index ] }'` );

var items = [ { name: 'one' }, { name: 'two' }, { name: 'three' }, { name: 'four' }, { name: 'five' } ];
function fn**() {
function** fn() {
for ( let entry of items ) {

@@ -606,3 +606,3 @@ let index = items.indexOf( entry );

let entries = { one: { name: 'one' }, two: { name: 'two' } };
function fn**() {
function** fn() {
parentLoop: for ( let propertyName in entries ) {

@@ -609,0 +609,0 @@ childLoop: for ( let subPropertyName in entries[ propertyName ] ) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc