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

flow-enums-runtime

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flow-enums-runtime - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

CHANGELOG.md

31

__tests__/tests.js

@@ -105,6 +105,18 @@ /**

test('members', () => {
test('members iterable', () => {
expect(Array.from(E.members())).toEqual([1, 2]);
let i = 1;
for (const x of E.members()) {
expect(x).toEqual(i);
i++;
}
});
test('members iterator', () => {
const iter = E.members();
expect(iter.next()).toEqual({value: 1, done: false});
expect(iter.next()).toEqual({value: 2, done: false});
expect(iter.next()).toEqual({value: undefined, done: true});
});
test('getName', () => {

@@ -215,6 +227,19 @@ expect(E.getName(E.A)).toBe('A');

test('members', () => {
expect(Array.from(E.members())).toEqual(['A', 'B']);
test('members iterable', () => {
const expected = ['A', 'B'];
expect(Array.from(E.members())).toEqual(expected);
let i = 0;
for (const x of E.members()) {
expect(x).toEqual(expected[i]);
i++;
}
});
test('members iterator', () => {
const iter = E.members();
expect(iter.next()).toEqual({value: 'A', done: false});
expect(iter.next()).toEqual({value: 'B', done: false});
expect(iter.next()).toEqual({value: undefined, done: true});
});
test('getName', () => {

@@ -221,0 +246,0 @@ expect(E.getName(E.A)).toBe('A');

2

index.js

@@ -92,3 +92,3 @@ /**

// properties, and our properties aren't enumerable.
return Object.getOwnPropertyNames(this);
return Object.getOwnPropertyNames(this).values();
},

@@ -95,0 +95,0 @@ },

{
"name": "flow-enums-runtime",
"version": "0.0.4",
"version": "0.0.5",
"description": "Runtime to be use with the Flow Enums transform.",

@@ -5,0 +5,0 @@ "main": "index.js",

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