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

dojo-core

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dojo-core - npm Package Compare versions

Comparing version 2.0.0-alpha.15 to 2.0.0-alpha.16

async/ExtensiblePromise.d.ts

2

aspect.d.ts

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

import { Handle } from './interfaces';
import { Handle } from 'dojo-interfaces/core';
/**

@@ -3,0 +3,0 @@ * An object that provides the necessary APIs to be MapLike

@@ -1,6 +0,15 @@

import { Iterable } from 'dojo-shim/iterator';
import Promise, { Executor, State } from 'dojo-shim/Promise';
/// <reference types="node" />
import { Thenable } from 'dojo-shim/interfaces';
export declare const Canceled: State;
import { Executor } from 'dojo-shim/Promise';
import ExtensiblePromise from './ExtensiblePromise';
/**
* Describe the internal state of a task.
*/
export declare const enum State {
Fulfilled = 0,
Pending = 1,
Rejected = 2,
Canceled = 3,
}
/**
* A type guard that determines if `value` is a `Task`

@@ -11,12 +20,20 @@ * @param value The value to guard

/**
* Task is an extension of Promise that supports cancelation.
* Returns true if a given value has a `then` method.
* @param {any} value The value to check if is Thenable
* @returns {is Thenable<T>} A type guard if the value is thenable
*/
export default class Task<T> extends Promise<T> {
static all<T>(iterator: Iterable<(T | Thenable<T>)> | (T | Thenable<T>)[]): Task<T[]>;
static race<T>(iterator: Iterable<(T | Thenable<T>)> | (T | Thenable<T>)[]): Task<T>;
static reject<T>(reason: Error): Task<any>;
export declare function isThenable<T>(value: any): value is Thenable<T>;
/**
* Task is an extension of Promise that supports cancellation and the Task#finally method.
*/
export default class Task<T> extends ExtensiblePromise<T> {
/**
* Return a resolved task.
*
* @param value The value to resolve with
*
* @return {Task}
*/
static resolve(): Task<void>;
static resolve<T>(value: (T | Thenable<T>)): Task<T>;
protected static copy<U>(other: Promise<U>): Task<U>;
constructor(executor: Executor<T>, canceler?: () => void);
/**

@@ -35,3 +52,18 @@ * A cancelation handler that will be called if this task is canceled.

/**
* Propagates cancelation down through a Task tree. The Task's state is immediately set to canceled. If a Thenable
* The state of the task
*/
protected _state: State;
readonly state: State;
/**
* @constructor
*
* Create a new task. Executor is run immediately. The canceler will be called when the task is canceled.
*
* @param executor Method that initiates some task
* @param canceler Method to call when the task is canceled
*
*/
constructor(executor: Executor<T>, canceler?: () => void);
/**
* Propagates cancellation down through a Task tree. The Task's state is immediately set to canceled. If a Thenable
* finally task was passed in, it is resolved before calling this Task's finally callback; otherwise, this Task's

@@ -47,5 +79,15 @@ * finally callback is immediately executed. `_cancel` is called for each child Task, passing in the value returned

cancel(): void;
/**
* Allows for cleanup actions to be performed after resolution of a Promise.
*/
finally(callback: () => void | Thenable<any>): Task<T>;
then<U>(onFulfilled?: (value: T) => U | Thenable<U>, onRejected?: (error: Error) => U | Thenable<U>): Task<U>;
catch<U>(onRejected: (reason?: Error) => (U | Thenable<U>)): Task<U>;
/**
* Adds a callback to be invoked when the Task resolves or is rejected.
*
* @param {Function} onFulfilled A function to call to handle the resolution. The paramter to the function will be the resolved value, if any.
* @param {Function} onRejected A function to call to handle the error. The parameter to the function will be the caught error.
*
* @returns {ExtensiblePromise}
*/
then<U>(onFulfilled?: (value?: T) => U | Thenable<U>, onRejected?: (error: Error) => U | Thenable<U>): this;
}

@@ -11,9 +11,7 @@ var __extends = (this && this.__extends) || function (d, b) {

else if (typeof define === 'function' && define.amd) {
define(["require", "exports", 'dojo-shim/Promise'], factory);
define(["require", "exports", './ExtensiblePromise'], factory);
}
})(function (require, exports) {
"use strict";
var Promise_1 = require('dojo-shim/Promise');
/* tslint:disable-next-line:variable-name */
exports.Canceled = 4;
var ExtensiblePromise_1 = require('./ExtensiblePromise');
/**

@@ -24,10 +22,28 @@ * A type guard that determines if `value` is a `Task`

function isTask(value) {
return Boolean(value && typeof value.cancel === 'function' && Array.isArray(value.children) && Promise_1.isThenable(value));
return Boolean(value && typeof value.cancel === 'function' && Array.isArray(value.children) && isThenable(value));
}
exports.isTask = isTask;
/**
* Task is an extension of Promise that supports cancelation.
* Returns true if a given value has a `then` method.
* @param {any} value The value to check if is Thenable
* @returns {is Thenable<T>} A type guard if the value is thenable
*/
function isThenable(value) {
return value && typeof value.then === 'function';
}
exports.isThenable = isThenable;
/**
* Task is an extension of Promise that supports cancellation and the Task#finally method.
*/
var Task = (function (_super) {
__extends(Task, _super);
/**
* @constructor
*
* Create a new task. Executor is run immediately. The canceler will be called when the task is canceled.
*
* @param executor Method that initiates some task
* @param canceler Method to call when the task is canceled
*
*/
function Task(executor, canceler) {

@@ -38,13 +54,16 @@ var _this = this;

executor(function (value) {
if (_this._state === exports.Canceled) {
if (_this._state === 3 /* Canceled */) {
return;
}
_this._state = 0 /* Fulfilled */;
resolve(value);
}, function (reason) {
if (_this._state === exports.Canceled) {
if (_this._state === 3 /* Canceled */) {
return;
}
_this._state = 2 /* Rejected */;
reject(reason);
});
});
this._state = 1 /* Pending */;
this.children = [];

@@ -58,24 +77,14 @@ this.canceler = function () {

}
Task.all = function (iterator) {
return _super.all.call(this, iterator);
};
Task.race = function (iterator) {
return _super.race.call(this, iterator);
};
Task.reject = function (reason) {
return _super.reject.call(this, reason);
};
Task.resolve = function (value) {
return new this(function (resolve) {
resolve(value);
});
return new this(function (resolve, reject) { return resolve(value); });
};
Task.copy = function (other) {
var task = _super.copy.call(this, other);
task.children = [];
task.canceler = other instanceof Task ? other.canceler : function () { };
return task;
};
Object.defineProperty(Task.prototype, "state", {
get: function () {
return this._state;
},
enumerable: true,
configurable: true
});
/**
* Propagates cancelation down through a Task tree. The Task's state is immediately set to canceled. If a Thenable
* Propagates cancellation down through a Task tree. The Task's state is immediately set to canceled. If a Thenable
* finally task was passed in, it is resolved before calling this Task's finally callback; otherwise, this Task's

@@ -87,3 +96,3 @@ * finally callback is immediately executed. `_cancel` is called for each child Task, passing in the value returned

var _this = this;
this._state = exports.Canceled;
this._state = 3 /* Canceled */;
var runFinally = function () {

@@ -97,3 +106,3 @@ try {

if (this._finally) {
if (Promise_1.isThenable(finallyTask)) {
if (isThenable(finallyTask)) {
finallyTask = finallyTask.then(runFinally, runFinally);

@@ -118,4 +127,9 @@ }

};
/**
* Allows for cleanup actions to be performed after resolution of a Promise.
*/
Task.prototype.finally = function (callback) {
var task = _super.prototype.finally.call(this, callback);
var task = this.then(function (value) { return Task.resolve(callback()).then(function () { return value; }); }, function (reason) { return Task.resolve(callback()).then(function () {
throw reason;
}); });
// Keep a reference to the callback; it will be called if the Task is canceled

@@ -125,2 +139,10 @@ task._finally = callback;

};
/**
* Adds a callback to be invoked when the Task resolves or is rejected.
*
* @param {Function} onFulfilled A function to call to handle the resolution. The paramter to the function will be the resolved value, if any.
* @param {Function} onRejected A function to call to handle the error. The parameter to the function will be the caught error.
*
* @returns {ExtensiblePromise}
*/
Task.prototype.then = function (onFulfilled, onRejected) {

@@ -133,3 +155,3 @@ var _this = this;

function (value) {
if (task._state === exports.Canceled) {
if (task._state === 3 /* Canceled */) {
return;

@@ -142,3 +164,3 @@ }

}, function (error) {
if (task._state === exports.Canceled) {
if (task._state === 3 /* Canceled */) {
return;

@@ -165,7 +187,4 @@ }

};
Task.prototype.catch = function (onRejected) {
return _super.prototype.catch.call(this, onRejected);
};
return Task;
}(Promise_1.default));
}(ExtensiblePromise_1.default));
Object.defineProperty(exports, "__esModule", { value: true });

@@ -172,0 +191,0 @@ exports.default = Task;

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

import Promise from 'dojo-shim/Promise';
/// <reference types="node" />
import Promise from './ExtensiblePromise';
import { Thenable } from 'dojo-shim/interfaces';
/**

@@ -6,7 +8,7 @@ * Used for delaying a Promise chain for a specific number of milliseconds.

* @param milliseconds the number of milliseconds to delay
* @return {function(T): Promise<T>} a function producing a promise that eventually returns the value passed to it; usable with Thenable.then()
* @return {function (value: T | (() => T | Thenable<T>)): Promise<T>} a function producing a promise that eventually returns the value or executes the value function passed to it; usable with Thenable.then()
*/
export declare function delay<T>(milliseconds: number): Identity<T>;
export interface Identity<T> {
(value: T): Promise<T>;
(value?: T | (() => T | Thenable<T>)): Promise<T>;
}

@@ -13,0 +15,0 @@ /**

@@ -11,7 +11,7 @@ var __extends = (this && this.__extends) || function (d, b) {

else if (typeof define === 'function' && define.amd) {
define(["require", "exports", 'dojo-shim/Promise'], factory);
define(["require", "exports", './ExtensiblePromise'], factory);
}
})(function (require, exports) {
"use strict";
var Promise_1 = require('dojo-shim/Promise');
var ExtensiblePromise_1 = require('./ExtensiblePromise');
/**

@@ -21,9 +21,9 @@ * Used for delaying a Promise chain for a specific number of milliseconds.

* @param milliseconds the number of milliseconds to delay
* @return {function(T): Promise<T>} a function producing a promise that eventually returns the value passed to it; usable with Thenable.then()
* @return {function (value: T | (() => T | Thenable<T>)): Promise<T>} a function producing a promise that eventually returns the value or executes the value function passed to it; usable with Thenable.then()
*/
function delay(milliseconds) {
return function (value) {
return new Promise_1.default(function (resolve) {
return new ExtensiblePromise_1.default(function (resolve) {
setTimeout(function () {
resolve(value);
resolve(typeof value === 'function' ? value() : value);
}, milliseconds);

@@ -45,5 +45,5 @@ });

if (Date.now() - milliseconds > start) {
return Promise_1.default.reject(reason);
return ExtensiblePromise_1.default.reject(reason);
}
return Promise_1.default.resolve(value);
return ExtensiblePromise_1.default.resolve(value);
};

@@ -63,8 +63,12 @@ }

function DelayedRejection(milliseconds, reason) {
_super.call(this, function (resolve, reject) {
setTimeout(reason ? reject.bind(this, reason) : reject.bind(this), milliseconds);
_super.call(this, function () {
});
return new ExtensiblePromise_1.default(function (resolve, reject) {
setTimeout(function () {
reject(reason);
}, milliseconds);
});
}
return DelayedRejection;
}(Promise_1.default));
}(ExtensiblePromise_1.default));
exports.DelayedRejection = DelayedRejection;

@@ -71,0 +75,0 @@ ;

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

/// <reference types="node" />
export declare type ByteBuffer = Uint8Array | Buffer | number[];

@@ -2,0 +3,0 @@ export interface Codec {

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

import { Handle, EventObject } from './interfaces';
import { Handle, EventObject } from 'dojo-interfaces/core';
export default class Evented {

@@ -3,0 +3,0 @@ /**

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

import { Handle } from './interfaces';
/// <reference types="chai" />
import { Handle } from 'dojo-interfaces/core';
/**

@@ -3,0 +4,0 @@ * Registry identities can be strings or symbols. Note that the empty string is allowed.

@@ -0,9 +1,32 @@

/**
* The base event object, which provides a `type` property
*/
export interface EventObject {
type: string;
/**
* The type of the event
*/
readonly type: string;
}
/**
* Used through the toolkit as a consistent API to manage how callers can "cleanup"
* when doing a function.
*/
export interface Handle {
/**
* Perform the destruction/cleanup logic associated with this handle
*/
destroy(): void;
}
/**
* A general interface that can be used to renference a general index map of values of a particular type
*/
export interface Hash<T> {
[key: string]: T;
[id: string]: T;
}
/**
* A base map of styles where each key is the name of the style attribute and the value is a string
* which represents the style
*/
export interface StylesMap {
[style: string]: string;
}

@@ -0,1 +1,3 @@

/* DEPRECATED: These interfaces are deprecated and have been moved to dojo-interfaces/core.d.ts
* They are only provided here to make the transistion to dojo-interfaces easier */
(function (factory) {

@@ -2,0 +4,0 @@ if (typeof module === 'object' && typeof module.exports === 'object') {

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

import { Handle } from './interfaces';
import { Handle } from 'dojo-interfaces/core';
/**

@@ -3,0 +3,0 @@ * Copies the values of all enumerable own properties of one or more source objects to the target object.

import P from 'dojo-shim/Promise';
import { Require } from './loader';
import { Require } from 'dojo-interfaces/loader';
export interface NodeRequire {

@@ -4,0 +4,0 @@ (moduleId: string): any;

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

import { Handle } from './interfaces';
import { Handle } from 'dojo-interfaces/core';
/**

@@ -3,0 +3,0 @@ * A registry of values tagged with matchers.

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

import { Handle, EventObject } from './interfaces';
import { Handle, EventObject } from 'dojo-interfaces/core';
import Evented from './Evented';

@@ -3,0 +3,0 @@ export interface EventCallback {

{
"name": "dojo-core",
"version": "2.0.0-alpha.15",
"version": "2.0.0-alpha.16",
"description": "Basic utilites for common TypeScript development",
"engines": {
"node": "^6.0.0",
"npm": "^3.0.0"
},
"homepage": "http://dojotoolkit.org",

@@ -16,26 +20,22 @@ "bugs": {

"peerDependencies": {
"dojo-has": ">=2.0.0-alpha.4",
"dojo-has": ">=2.0.0-alpha.6",
"dojo-shim": ">=2.0.0-alpha.4"
},
"devDependencies": {
"@types/benchmark": "~1.0.0",
"@types/chai": "~3.4.0",
"@types/formidable": "~1.0.0",
"@types/glob": "~5.0.0",
"@types/grunt": "~0.4.0",
"@types/sinon": "~1.16.0",
"benchmark": "^1.0.0",
"codecov.io": "0.1.6",
"dojo-interfaces": ">=2.0.0-alpha.2",
"dojo-loader": ">=2.0.0-beta.7",
"dts-generator": "~1.7.0",
"formidable": "1.0.17",
"glob": "^7.0.3",
"grunt": "^1.0.1",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-watch": "^1.0.0",
"grunt-dojo2": ">=2.0.0-beta.16",
"grunt-text-replace": "0.4.0",
"grunt-ts": "^5.5.1",
"grunt-tslint": "^3.1.0",
"grunt-typings": ">=0.1.5",
"grunt-dojo2": ">=2.0.0-beta.19",
"http-proxy": "0.10.3",
"intern": "~3.2.3",
"intern": "^3.3.1",
"istanbul": "0.4.3",
"remap-istanbul": "0.6.4",
"sinon": "1.14.1",
"sinon": "~1.17.6",
"tslint": "^3.15.1",

@@ -42,0 +42,0 @@ "typescript": "~2.0.3"

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

import { Handle } from './interfaces';
import { Handle } from 'dojo-interfaces/core';
export interface QueueItem {

@@ -3,0 +3,0 @@ isActive: boolean;

@@ -104,18 +104,2 @@ # Dojo 2 core

### Data Structures
#### Map
The [`dojo-core/Map` class](docs/Map.md) is an implementation of the ES2015 Map specification
without iterators for use in older browsers.
#### WeakMap
The `dojo-core/WeakMap` class is an implementation of the ES2015 WeakMap specification
without iterators for use in older browsers. The main difference between WeakMap and Map
is that WeakMap's keys can only be objects and that the store has a weak reference
to the key/value pair. This allows for the garbage collector to remove pairs.
Look at [Map](docs/Map.md) for more information on how to use WeakMap.
## How do I contribute?

@@ -122,0 +106,0 @@

@@ -0,3 +1,4 @@

/// <reference types="node" />
import Task from './async/Task';
import { Handle } from './interfaces';
import { Handle } from 'dojo-interfaces/core';
import MatchRegistry, { Test } from './MatchRegistry';

@@ -4,0 +5,0 @@ import { ParamList } from './UrlSearchParams';

@@ -26,3 +26,8 @@ import { RequestOptions, ResponsePromise } from '../request';

streamTarget?: WritableStream<T>;
redirectOptions?: {
limit?: number;
count?: number;
keepOriginalMethod?: boolean;
};
}
export default function node<T>(url: string, options?: NodeRequestOptions<T>): ResponsePromise<T>;

@@ -23,2 +23,25 @@ (function (factory) {

var version = '2.0.0-pre';
var DEFAULT_REDIRECT_LIMIT = 15;
function redirect(resolve, reject, url, options) {
if (!options.redirectOptions) {
options.redirectOptions = {};
}
var _a = options.redirectOptions.limit, redirectLimit = _a === void 0 ? DEFAULT_REDIRECT_LIMIT : _a;
var _b = options.redirectOptions.count, redirectCount = _b === void 0 ? 0 : _b;
var _c = options.followRedirects, followRedirects = _c === void 0 ? true : _c;
if (!followRedirects) {
return false;
}
if (!url) {
reject(new Error('asked to redirect but no location header was found'));
return true;
}
if (redirectCount > redirectLimit) {
reject(new Error("too many redirects, limit reached at " + redirectLimit));
return true;
}
options.redirectOptions.count = redirectCount + 1;
resolve(node(url, options));
return true;
}
function node(url, options) {

@@ -94,11 +117,78 @@ if (options === void 0) { options = {}; }

// follow redirects
// TODO: This redirect code is not 100% correct according to the RFC; needs to handle redirect loops and
// restrict/modify certain redirects
if (response.statusCode >= 300 &&
response.statusCode < 400 &&
response.statusCode !== 304 &&
options.followRedirects !== false &&
nativeResponse.headers.location) {
resolve(node(nativeResponse.headers.location, options));
return;
response.statusCode < 400) {
var redirectOptions = options.redirectOptions || {};
var newOptions = Object.create(options);
switch (response.statusCode) {
case 300:
/**
* Note about 300 redirects. RFC 2616 doesn't specify what to do with them, it is up to the client to "pick
* the right one". We're picking like Chrome does, just don't pick any.
*/
break;
case 301:
case 302:
/**
* RFC 2616 says,
*
* If the 301 status code is received in response to a request other
* than GET or HEAD, the user agent MUST NOT automatically redirect the
* request unless it can be confirmed by the user, since this might
* change the conditions under which the request was issued.
*
* Note: When automatically redirecting a POST request after
* receiving a 301 status code, some existing HTTP/1.0 user agents
* will erroneously change it into a GET request.
*
* We're going to be one of those erroneous agents, to prevent the request from failing..
*/
if ((requestOptions.method !== 'GET' && requestOptions.method !== 'HEAD') && !redirectOptions.keepOriginalMethod) {
newOptions.method = 'GET';
}
if (redirect(resolve, reject, nativeResponse.headers.location, newOptions)) {
return;
}
break;
case 303:
/**
* The response to the request can be found under a different URI and
* SHOULD be retrieved using a GET method on that resource.
*/
if (requestOptions.method !== 'GET') {
newOptions.method = 'GET';
}
if (redirect(resolve, reject, nativeResponse.headers.location, newOptions)) {
return;
}
break;
case 304:
// do nothing so this can fall through and return the response as normal. Nothing more can
// be done for 304
break;
case 305:
if (!nativeResponse.headers.location) {
reject(new Error('expected Location header to contain a proxy url'));
}
else {
newOptions.proxy = nativeResponse.headers.location;
if (redirect(resolve, reject, requestUrl, newOptions)) {
return;
}
}
break;
case 307:
/**
* If the 307 status code is received in response to a request other
* than GET or HEAD, the user agent MUST NOT automatically redirect the
* request unless it can be confirmed by the user, since this might
* change the conditions under which the request was issued.
*/
if (redirect(resolve, reject, nativeResponse.headers.location, newOptions)) {
return;
}
break;
default:
reject(new Error('unhandled redirect status ' + response.statusCode));
return;
}
}

@@ -105,0 +195,0 @@ options.streamEncoding && nativeResponse.setEncoding(options.streamEncoding);

@@ -6,4 +6,4 @@ import { RequestOptions } from '../request';

* @param url The base URL.
* @param options The options hash that is used to generate the query string.
* @param options The RequestOptions used to generate the query string or cacheBust.
*/
export declare function generateRequestUrl(url: string, options: RequestOptions): string;
export declare function generateRequestUrl(url: string, {query, cacheBust}?: RequestOptions): string;

@@ -15,12 +15,13 @@ (function (factory) {

* @param url The base URL.
* @param options The options hash that is used to generate the query string.
* @param options The RequestOptions used to generate the query string or cacheBust.
*/
function generateRequestUrl(url, options) {
var query = new UrlSearchParams_1.default(options.query).toString();
if (options.cacheBust) {
var cacheBust = String(Date.now());
query += query ? '&' + cacheBust : cacheBust;
function generateRequestUrl(url, _a) {
var _b = _a === void 0 ? {} : _a, query = _b.query, cacheBust = _b.cacheBust;
query = new UrlSearchParams_1.default(query).toString();
if (cacheBust) {
var bustString = String(Date.now());
query += query ? "&" + bustString : bustString;
}
var separator = url.indexOf('?') > -1 ? '&' : '?';
return query ? url + separator + query : url;
return query ? "" + url + separator + query : url;
}

@@ -27,0 +28,0 @@ exports.generateRequestUrl = generateRequestUrl;

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

import { Handle } from './interfaces';
import { Handle } from 'dojo-interfaces/core';
import { QueueItem } from './queue';

@@ -3,0 +3,0 @@ export interface KwArgs {

import Promise from 'dojo-shim/Promise';
import Evented from '../../Evented';
import { Handle } from '../../interfaces';
import { Handle } from 'dojo-interfaces/core';
import { EventEmitter } from '../../on';

@@ -5,0 +5,0 @@ import { Source } from '../ReadableStream';

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

/// <reference types="node" />
import Promise from 'dojo-shim/Promise';

@@ -2,0 +3,0 @@ import { Source } from '../ReadableStream';

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

/// <reference types="node" />
import Promise from 'dojo-shim/Promise';

@@ -2,0 +3,0 @@ import { Sink } from '../WritableStream';

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

/// <reference types="node" />
import Promise from 'dojo-shim/Promise';

@@ -2,0 +3,0 @@ import { Strategy } from './interfaces';

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

/// <reference types="node" />
import ReadableStream from './ReadableStream';

@@ -2,0 +3,0 @@ export declare function isReadableStreamController(x: any): boolean;

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

/// <reference types="node" />
import Promise from 'dojo-shim/Promise';

@@ -2,0 +3,0 @@ import { Strategy } from './interfaces';

import Promise from 'dojo-shim/Promise';
import { Config, Require } from './loader';
import { Config, Require } from 'dojo-interfaces/loader';
export declare function get(url: string): Promise<string>;
export declare function normalize(id: string, toAbsMid: (moduleId: string) => string): string;
export declare function load(id: string, require: Require, load: (value?: any) => void, config?: Config): void;

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

import { Hash } from './interfaces';
import { Hash } from 'dojo-interfaces/core';
/**

@@ -3,0 +3,0 @@ * Object with string keys and string or string array values that describes a query string.

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

import { Handle } from './interfaces';
import { Handle } from 'dojo-interfaces/core';
/**

@@ -3,0 +3,0 @@ * Wraps a setTimeout call in a handle, allowing the timeout to be cleared by calling destroy.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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