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

@apollo-elements/fast

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo-elements/fast - npm Package Compare versions

Comparing version 2.0.1-next.0 to 2.1.0

3

bases/apollo-query.d.ts

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

/// <reference types="zen-observable" />
import type { ComponentDocument, Data, FetchMoreParams, MaybeTDN, MaybeVariables, NextFetchPolicyFunction, Variables } from '@apollo-elements/core/types';

@@ -149,3 +148,3 @@ import type * as C from '@apollo/client/core';

*/
subscribe(params?: Partial<C.WatchQueryOptions<Variables<D, V>, Data<D>>>): ZenObservable.Subscription;
subscribe(params?: Partial<C.WatchQueryOptions<Variables<D, V>, Data<D>>>): C.ObservableSubscription;
/**

@@ -152,0 +151,0 @@ * Lets you pass a GraphQL subscription and updateQuery function

import { __decorate } from "tslib";
import * as C from '@apollo/client/core';
import { makeClient, nextNAsync } from '@apollo-elements/test';
import { makeClient } from '@apollo-elements/test';
import { fixture, expect } from '@open-wc/testing';

@@ -95,3 +94,3 @@ import { unsafeStatic, html as h } from 'lit/static-html.js';

});
beforeEach(() => spy(C.ObservableQuery.prototype, 'reobserve'));
beforeEach(() => spy(element.controller, 'refetch'));
beforeEach(() => {

@@ -103,15 +102,17 @@ clock = useFakeTimers();

var _a, _b;
(_b = (_a = C.ObservableQuery.prototype.reobserve).restore) === null || _b === void 0 ? void 0 : _b.call(_a);
(_b = (_a = element.controller.refetch).restore) === null || _b === void 0 ? void 0 : _b.call(_a);
});
describe('calling startPolling(1000)', function () {
beforeEach(function startPolling() { element.startPolling(1000); });
beforeEach(() => nextNAsync(clock, 3));
beforeEach(() => {
clock.tick(3500);
});
it('refetches', function () {
expect(C.ObservableQuery.prototype.reobserve).to.have.been.calledThrice;
expect(element.controller.refetch).to.have.been.calledThrice;
});
describe('then stopPolling', function () {
beforeEach(function stopPolling() { element.stopPolling(); });
beforeEach(() => nextNAsync(clock, 5));
beforeEach(() => { clock.tick(3500); });
it('stops calling refetch', function () {
expect(C.ObservableQuery.prototype.reobserve).to.have.been.calledThrice;
expect(element.controller.refetch).to.have.been.calledThrice;
});

@@ -118,0 +119,0 @@ });

{
"name": "@apollo-elements/fast",
"version": "2.0.1-next.0",
"version": "2.1.0",
"description": "πŸ‘©β€πŸš€πŸŒ› FastElements for Apollo GraphQL πŸš€πŸ‘¨β€πŸš€",

@@ -71,8 +71,8 @@ "main": "index.js",

"dependencies": {
"@apollo-elements/core": "^1.0.1-next.0",
"@apollo-elements/mixins": "^4.0.1-next.0",
"@microsoft/fast-element": "^1.4.0",
"tslib": "^2.3.0"
"@apollo-elements/core": "^1.1.0",
"@apollo-elements/mixins": "^4.1.0",
"@microsoft/fast-element": "^1.6.2",
"tslib": "^2.3.1"
},
"customElements": "custom-elements.json"
}

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