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

@apollo-elements/lib

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo-elements/lib - npm Package Compare versions

Comparing version 3.0.0-alpha.2 to 3.0.0-alpha.3

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [3.0.0-alpha.3](https://github.com/apollo-elements/apollo-elements/compare/@apollo-elements/lib@3.0.0-alpha.2...@apollo-elements/lib@3.0.0-alpha.3) (2020-09-07)
**Note:** Version bump only for package @apollo-elements/lib
# [3.0.0-alpha.2](https://github.com/apollo-elements/apollo-elements/compare/@apollo-elements/lib@2.0.0...@apollo-elements/lib@3.0.0-alpha.2) (2020-09-06)

@@ -8,0 +16,0 @@

24

has-all-variables.test.js

@@ -45,5 +45,8 @@ import { expect } from '@open-wc/testing';

const query = r2;
expect(hasAllVariables({ query, variables: { one: '1', two: '2' } }), 'With all variables').to.be.true;
expect(hasAllVariables({ query, variables: { one: '1' } }), 'With first variable only').to.be.false;
expect(hasAllVariables({ query, variables: { two: '2' } }), 'With second variable only').to.be.false;
expect(hasAllVariables({ query, variables: { one: '1', two: '2' } }), 'With all variables')
.to.be.true;
expect(hasAllVariables({ query, variables: { one: '1' } }), 'With first variable only')
.to.be.false;
expect(hasAllVariables({ query, variables: { two: '2' } }), 'With second variable only')
.to.be.false;
expect(hasAllVariables({ query, variables: {} }), 'With no variables').to.be.false;

@@ -58,5 +61,7 @@ });

const query = o2;
expect(hasAllVariables({ query, variables: { one: 'one', two: 'two' } }), 'With all variables').to.be.true;
expect(hasAllVariables({ query, variables: { one: 'one', two: 'two' } }), 'With all variables')
.to.be.true;
expect(hasAllVariables({ query, variables: { one: 'one' } }), 'With one variable').to.be.true;
expect(hasAllVariables({ query, variables: { two: 'two' } }), 'With another variable').to.be.true;
expect(hasAllVariables({ query, variables: { two: 'two' } }), 'With another variable')
.to.be.true;
expect(hasAllVariables({ query, variables: {} }), 'With no variables').to.be.true;

@@ -66,5 +71,8 @@ });

const query = r1o1;
expect(hasAllVariables({ query, variables: { one: 'one', two: 'two' } }), 'With all variables').to.be.true;
expect(hasAllVariables({ query, variables: { one: 'one' } }), 'With only the required variable').to.be.true;
expect(hasAllVariables({ query, variables: { two: 'two' } }), 'With only the options variable').to.be.false;
expect(hasAllVariables({ query, variables: { one: 'one', two: 'two' } }), 'With all variables')
.to.be.true;
expect(hasAllVariables({ query, variables: { one: 'one' } }), 'With only the required variable')
.to.be.true;
expect(hasAllVariables({ query, variables: { two: 'two' } }), 'With only the options variable')
.to.be.false;
expect(hasAllVariables({ query, variables: {} }), 'With no variables').to.be.false;

@@ -71,0 +79,0 @@ });

@@ -53,5 +53,8 @@ import { expect } from '@open-wc/testing';

const query = r2;
expect(hasAllVariables({ query, variables: { one: '1', two: '2' } }), 'With all variables').to.be.true;
expect(hasAllVariables({ query, variables: { one: '1' } }), 'With first variable only').to.be.false;
expect(hasAllVariables({ query, variables: { two: '2' } }), 'With second variable only').to.be.false;
expect(hasAllVariables({ query, variables: { one: '1', two: '2' } }), 'With all variables')
.to.be.true;
expect(hasAllVariables({ query, variables: { one: '1' } }), 'With first variable only')
.to.be.false;
expect(hasAllVariables({ query, variables: { two: '2' } }), 'With second variable only')
.to.be.false;
expect(hasAllVariables({ query, variables: {} }), 'With no variables').to.be.false;

@@ -68,5 +71,7 @@ });

const query = o2;
expect(hasAllVariables({ query, variables: { one: 'one', two: 'two' } }), 'With all variables').to.be.true;
expect(hasAllVariables({ query, variables: { one: 'one', two: 'two' } }), 'With all variables')
.to.be.true;
expect(hasAllVariables({ query, variables: { one: 'one' } }), 'With one variable').to.be.true;
expect(hasAllVariables({ query, variables: { two: 'two' } }), 'With another variable').to.be.true;
expect(hasAllVariables({ query, variables: { two: 'two' } }), 'With another variable')
.to.be.true;
expect(hasAllVariables({ query, variables: {} }), 'With no variables').to.be.true;

@@ -77,5 +82,8 @@ });

const query = r1o1;
expect(hasAllVariables({ query, variables: { one: 'one', two: 'two' } }), 'With all variables').to.be.true;
expect(hasAllVariables({ query, variables: { one: 'one' } }), 'With only the required variable').to.be.true;
expect(hasAllVariables({ query, variables: { two: 'two' } }), 'With only the options variable').to.be.false;
expect(hasAllVariables({ query, variables: { one: 'one', two: 'two' } }), 'With all variables')
.to.be.true;
expect(hasAllVariables({ query, variables: { one: 'one' } }), 'With only the required variable')
.to.be.true;
expect(hasAllVariables({ query, variables: { two: 'two' } }), 'With only the options variable')
.to.be.false;
expect(hasAllVariables({ query, variables: {} }), 'With no variables').to.be.false;

@@ -82,0 +90,0 @@ });

@@ -116,3 +116,5 @@ import { expect } from '@open-wc/testing';

expect(isClientOperation(singleTopLevelClient), 'Single top-level client directive').to.be.true;
expect(isClientOperation(singleTopLevelWithChildClient), 'Single top-level item with child level client directive').to.be.true;
expect(
isClientOperation(singleTopLevelWithChildClient),
'Single top-level item with child level client directive').to.be.true;
expect(isClientOperation(deepButClient), 'Deeply nested all-client query').to.be.true;

@@ -122,11 +124,19 @@ });

it('rejects All-Network Operations', function() {
expect(isClientOperation(singleTopLevelNetwork), 'Single top-level network directive').to.be.false;
expect(isClientOperation(singleTopLevelNonClient), 'Single top-level non-client directive').to.be.false;
expect(
isClientOperation(singleTopLevelNetwork),
'Single top-level network directive').to.be.false;
expect(
isClientOperation(singleTopLevelNonClient),
'Single top-level non-client directive').to.be.false;
});
it('rejects Mixed Operations', function() {
expect(isClientOperation(mixedOp1), 'Rejects mixed operation with top-level members').to.be.false;
expect(
isClientOperation(mixedOp1),
'Rejects mixed operation with top-level members').to.be.false;
expect(isClientOperation(mixedOp2), 'Rejects mixed operation with directives').to.be.false;
expect(isClientOperation(deepButMixed), 'Rejects deeply mixed operation with directives').to.be.false;
expect(
isClientOperation(deepButMixed),
'Rejects deeply mixed operation with directives').to.be.false;
});
});
{
"name": "@apollo-elements/lib",
"version": "3.0.0-alpha.2",
"version": "3.0.0-alpha.3",
"description": "Library functions for apollo-elements",

@@ -21,3 +21,4 @@ "main": "index.js",

"type": "git",
"url": "git+ssh://git@github.com/apollo-elements/apollo-elements.git"
"url": "git+ssh://git@github.com/apollo-elements/apollo-elements.git",
"directory": "packages/lib"
},

@@ -41,3 +42,3 @@ "keywords": [

},
"gitHead": "41fab90ad1dc4e57dc02c7843557e494f26316a1"
"gitHead": "1f277db7ba8a3f73ba2dcddfc9addf553e3bc7a0"
}

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