new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
import Attribute from '../../../nodes/Attribute';
|
||||
import Block from '../../Block';
|
||||
import ElementWrapper from './index';
|
||||
import { Identifier, Node } from 'estree';
|
||||
export declare class BaseAttributeWrapper {
|
||||
node: Attribute;
|
||||
parent: ElementWrapper;
|
||||
constructor(parent: ElementWrapper, block: Block, node: Attribute);
|
||||
render(_block: Block): void;
|
||||
}
|
||||
export default class AttributeWrapper extends BaseAttributeWrapper {
|
||||
node: Attribute;
|
||||
parent: ElementWrapper;
|
||||
metadata: any;
|
||||
name: string;
|
||||
property_name: string;
|
||||
is_indirectly_bound_value: boolean;
|
||||
is_src: boolean;
|
||||
is_select_value_attribute: boolean;
|
||||
is_input_value: boolean;
|
||||
should_cache: boolean;
|
||||
last: Identifier;
|
||||
constructor(parent: ElementWrapper, block: Block, node: Attribute);
|
||||
render(block: Block): void;
|
||||
get_init(block: Block, value: any): any;
|
||||
get_dom_update_conditions(block: Block, dependency_condition: Node): Node;
|
||||
get_dependencies(): string[];
|
||||
get_metadata(): any;
|
||||
get_value(block: any): Identifier | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").Program | import("estree").FunctionDeclaration | import("estree").FunctionExpression | import("estree").ArrowFunctionExpression | import("estree").SwitchCase | import("estree").CatchClause | import("estree").VariableDeclarator | import("estree").ExpressionStatement | import("estree").BlockStatement | import("estree").EmptyStatement | import("estree").DebuggerStatement | import("estree").WithStatement | import("estree").ReturnStatement | import("estree").LabeledStatement | import("estree").BreakStatement | import("estree").ContinueStatement | import("estree").IfStatement | import("estree").SwitchStatement | import("estree").ThrowStatement | import("estree").TryStatement | import("estree").WhileStatement | import("estree").DoWhileStatement | import("estree").ForStatement | import("estree").ForInStatement | import("estree").ForOfStatement | import("estree").VariableDeclaration | import("estree").ClassDeclaration | import("estree").ThisExpression | import("estree").ArrayExpression | import("estree").ObjectExpression | import("estree").YieldExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").BinaryExpression | import("estree").AssignmentExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").ConditionalExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").SequenceExpression | import("estree").TemplateLiteral | import("estree").TaggedTemplateExpression | import("estree").ClassExpression | import("estree").MetaProperty | import("estree").AwaitExpression | import("estree").ImportExpression | import("estree").ChainExpression | import("estree").Property | import("estree").Super | import("estree").TemplateElement | import("estree").SpreadElement | import("estree").ObjectPattern | import("estree").ArrayPattern | import("estree").RestElement | import("estree").AssignmentPattern | import("estree").ClassBody | import("estree").MethodDefinition | import("estree").ImportDeclaration | import("estree").ExportNamedDeclaration | import("estree").ExportDefaultDeclaration | import("estree").ExportAllDeclaration | import("estree").ImportSpecifier | import("estree").ImportDefaultSpecifier | import("estree").ImportNamespaceSpecifier | import("estree").ExportSpecifier | {
|
||||
type: string;
|
||||
value: string;
|
||||
};
|
||||
get_class_name_text(block: any): Identifier | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").Program | import("estree").FunctionDeclaration | import("estree").FunctionExpression | import("estree").ArrowFunctionExpression | import("estree").SwitchCase | import("estree").CatchClause | import("estree").VariableDeclarator | import("estree").ExpressionStatement | import("estree").BlockStatement | import("estree").EmptyStatement | import("estree").DebuggerStatement | import("estree").WithStatement | import("estree").ReturnStatement | import("estree").LabeledStatement | import("estree").BreakStatement | import("estree").ContinueStatement | import("estree").IfStatement | import("estree").SwitchStatement | import("estree").ThrowStatement | import("estree").TryStatement | import("estree").WhileStatement | import("estree").DoWhileStatement | import("estree").ForStatement | import("estree").ForInStatement | import("estree").ForOfStatement | import("estree").VariableDeclaration | import("estree").ClassDeclaration | import("estree").ThisExpression | import("estree").ArrayExpression | import("estree").ObjectExpression | import("estree").YieldExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").BinaryExpression | import("estree").AssignmentExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").ConditionalExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").SequenceExpression | import("estree").TemplateLiteral | import("estree").TaggedTemplateExpression | import("estree").ClassExpression | import("estree").MetaProperty | import("estree").AwaitExpression | import("estree").ImportExpression | import("estree").ChainExpression | import("estree").Property | import("estree").Super | import("estree").TemplateElement | import("estree").SpreadElement | import("estree").ObjectPattern | import("estree").ArrayPattern | import("estree").RestElement | import("estree").AssignmentPattern | import("estree").ClassBody | import("estree").MethodDefinition | import("estree").ImportDeclaration | import("estree").ExportNamedDeclaration | import("estree").ExportDefaultDeclaration | import("estree").ExportAllDeclaration | import("estree").ImportSpecifier | import("estree").ImportDefaultSpecifier | import("estree").ImportNamespaceSpecifier | import("estree").ExportSpecifier | {
|
||||
type: string;
|
||||
value: string;
|
||||
};
|
||||
render_chunks(block: Block): (Identifier | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").Program | import("estree").FunctionDeclaration | import("estree").FunctionExpression | import("estree").ArrowFunctionExpression | import("estree").SwitchCase | import("estree").CatchClause | import("estree").VariableDeclarator | import("estree").ExpressionStatement | import("estree").BlockStatement | import("estree").EmptyStatement | import("estree").DebuggerStatement | import("estree").WithStatement | import("estree").ReturnStatement | import("estree").LabeledStatement | import("estree").BreakStatement | import("estree").ContinueStatement | import("estree").IfStatement | import("estree").SwitchStatement | import("estree").ThrowStatement | import("estree").TryStatement | import("estree").WhileStatement | import("estree").DoWhileStatement | import("estree").ForStatement | import("estree").ForInStatement | import("estree").ForOfStatement | import("estree").VariableDeclaration | import("estree").ClassDeclaration | import("estree").ThisExpression | import("estree").ArrayExpression | import("estree").ObjectExpression | import("estree").YieldExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").BinaryExpression | import("estree").AssignmentExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").ConditionalExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").SequenceExpression | import("estree").TemplateLiteral | import("estree").TaggedTemplateExpression | import("estree").ClassExpression | import("estree").MetaProperty | import("estree").AwaitExpression | import("estree").ImportExpression | import("estree").ChainExpression | import("estree").Property | import("estree").Super | import("estree").TemplateElement | import("estree").SpreadElement | import("estree").ObjectPattern | import("estree").ArrayPattern | import("estree").RestElement | import("estree").AssignmentPattern | import("estree").ClassBody | import("estree").MethodDefinition | import("estree").ImportDeclaration | import("estree").ExportNamedDeclaration | import("estree").ExportDefaultDeclaration | import("estree").ExportAllDeclaration | import("estree").ImportSpecifier | import("estree").ImportDefaultSpecifier | import("estree").ImportNamespaceSpecifier | import("estree").ExportSpecifier | {
|
||||
type: string;
|
||||
value: string;
|
||||
})[];
|
||||
stringify(): string;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"interval.js","sources":["../src/observable/interval.ts"],"names":[],"mappings":";;;;;AAAA,qDAAgD"}
|
||||
@@ -0,0 +1,9 @@
|
||||
import Attribute from '../nodes/Attribute';
|
||||
import Block from '../render_dom/Block';
|
||||
export default function get_slot_data(values: Map<string, Attribute>, block?: Block): {
|
||||
type: string;
|
||||
properties: (import("estree").Property | import("estree").SpreadElement | {
|
||||
type: string;
|
||||
argument: import("estree").Identifier | import("estree").SimpleLiteral | import("estree").RegExpLiteral | import("estree").Program | import("estree").FunctionDeclaration | import("estree").FunctionExpression | import("estree").ArrowFunctionExpression | import("estree").SwitchCase | import("estree").CatchClause | import("estree").VariableDeclarator | import("estree").ExpressionStatement | import("estree").BlockStatement | import("estree").EmptyStatement | import("estree").DebuggerStatement | import("estree").WithStatement | import("estree").ReturnStatement | import("estree").LabeledStatement | import("estree").BreakStatement | import("estree").ContinueStatement | import("estree").IfStatement | import("estree").SwitchStatement | import("estree").ThrowStatement | import("estree").TryStatement | import("estree").WhileStatement | import("estree").DoWhileStatement | import("estree").ForStatement | import("estree").ForInStatement | import("estree").ForOfStatement | import("estree").VariableDeclaration | import("estree").ClassDeclaration | import("estree").ThisExpression | import("estree").ArrayExpression | import("estree").ObjectExpression | import("estree").YieldExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").BinaryExpression | import("estree").AssignmentExpression | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").ConditionalExpression | import("estree").SimpleCallExpression | import("estree").NewExpression | import("estree").SequenceExpression | import("estree").TemplateLiteral | import("estree").TaggedTemplateExpression | import("estree").ClassExpression | import("estree").MetaProperty | import("estree").AwaitExpression | import("estree").ImportExpression | import("estree").ChainExpression | import("estree").Property | import("estree").Super | import("estree").TemplateElement | import("estree").SpreadElement | import("estree").ObjectPattern | import("estree").ArrayPattern | import("estree").RestElement | import("estree").AssignmentPattern | import("estree").ClassBody | import("estree").MethodDefinition | import("estree").ImportDeclaration | import("estree").ExportNamedDeclaration | import("estree").ExportDefaultDeclaration | import("estree").ExportAllDeclaration | import("estree").ImportSpecifier | import("estree").ImportDefaultSpecifier | import("estree").ImportNamespaceSpecifier | import("estree").ExportSpecifier;
|
||||
})[];
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__export(require("rxjs-compat/observable/FromEventObservable"));
|
||||
//# sourceMappingURL=FromEventObservable.js.map
|
||||
@@ -0,0 +1,74 @@
|
||||
const test = require('ava');
|
||||
const sh = require('shelljs');
|
||||
const sinon = require('sinon');
|
||||
const Shell = require('../lib/shell');
|
||||
const Log = require('../lib/log');
|
||||
const { factory } = require('./util');
|
||||
|
||||
const { stdout } = sh.exec('pwd');
|
||||
const cwd = stdout.trim();
|
||||
|
||||
const shell = factory(Shell);
|
||||
|
||||
test('exec', async t => {
|
||||
t.is(await shell.exec('echo bar'), 'bar');
|
||||
});
|
||||
|
||||
test('exec (with context)', async t => {
|
||||
const exec = cmd => shell.exec(cmd, { verbose: false }, shell.config.getContext());
|
||||
t.is(await exec(''), undefined);
|
||||
t.is(await exec('pwd'), cwd);
|
||||
t.is(await exec('echo ${git.pushArgs}'), '--follow-tags');
|
||||
t.is(await exec('echo -*- ${github.tokenRef} -*-'), '-*- GITHUB_TOKEN -*-');
|
||||
});
|
||||
|
||||
test('exec (with args)', async t => {
|
||||
t.is(await shell.exec([]), undefined);
|
||||
t.is(await shell.exec(['pwd']), cwd);
|
||||
t.is(await shell.exec(['echo', 'a', 'b']), 'a b');
|
||||
t.is(await shell.exec(['echo', '"a"']), '"a"');
|
||||
});
|
||||
|
||||
test('exec (dry-run/read-only)', async t => {
|
||||
const shell = factory(Shell, { options: { 'dry-run': true } });
|
||||
{
|
||||
const actual = await shell.exec('pwd', { write: false });
|
||||
t.is(actual, cwd);
|
||||
t.is(shell.log.exec.callCount, 1);
|
||||
t.is(shell.log.exec.firstCall.args[0], 'pwd');
|
||||
}
|
||||
{
|
||||
const actual = await shell.exec('pwd');
|
||||
t.is(actual, undefined);
|
||||
t.is(shell.log.exec.callCount, 2);
|
||||
t.is(shell.log.exec.secondCall.args[0], 'pwd');
|
||||
t.deepEqual(shell.log.exec.secondCall.lastArg, { isDryRun: true });
|
||||
}
|
||||
});
|
||||
|
||||
test('exec (verbose)', async t => {
|
||||
const shell = factory(Shell, { options: { verbose: true } });
|
||||
const actual = await shell.exec('echo foo');
|
||||
t.is(shell.log.exec.firstCall.args[0], 'echo foo');
|
||||
t.is(shell.log.exec.callCount, 1);
|
||||
t.is(shell.log.verbose.firstCall.args[0], 'foo');
|
||||
t.is(shell.log.verbose.callCount, 1);
|
||||
t.is(actual, 'foo');
|
||||
});
|
||||
|
||||
test('should cache results of command execution', async t => {
|
||||
const log = sinon.createStubInstance(Log);
|
||||
const shell = factory(Shell, { container: { log } });
|
||||
const result1 = await shell.exec('echo foo');
|
||||
const result2 = await shell.exec('echo foo');
|
||||
t.is(result1, result2);
|
||||
t.deepEqual(log.exec.args, [
|
||||
['echo foo', { isExternal: false, isCached: false }],
|
||||
['echo foo', { isExternal: false, isCached: true }]
|
||||
]);
|
||||
});
|
||||
|
||||
test('should bail out on failed command execution', async t => {
|
||||
const shell = new Shell({ container: { log: sinon.createStubInstance(Log) } });
|
||||
await t.throwsAsync(() => shell.exec('foo'));
|
||||
});
|
||||
@@ -0,0 +1,54 @@
|
||||
|
||||
0.3.0 / 2014-02-20
|
||||
==================
|
||||
|
||||
* renmaed to `index.js`
|
||||
* added repository to package.json
|
||||
* remove unused variable and merge
|
||||
* simpify isDate() and remove unnecessary semicolon.
|
||||
* Add .withArgs() syntax for building scenario
|
||||
* eql(): fix wrong order of actual vs. expected.
|
||||
* Added formatting for Error objects
|
||||
* Add support for 'regexp' type and eql comparison of regular expressions.
|
||||
* Better to follow the same coding style
|
||||
* Use 'showDiff' flag
|
||||
* Add 'actual' & 'expected' property to the thrown error
|
||||
* Pass .fail() unit test
|
||||
* Ignore 'script*' global leak in chrome
|
||||
* Exposed object stringification function
|
||||
* Use isRegExp in Assertion::throwException. Fix #25
|
||||
* Cleaned up local variables
|
||||
|
||||
0.2.0 / 2012-10-19
|
||||
==================
|
||||
|
||||
* fix isRegExp bug in some edge cases
|
||||
* add closure to all assertion messages deferring costly inspects
|
||||
until there is actually a failure
|
||||
* fix `make test` for recent mochas
|
||||
* add inspect() case for DOM elements
|
||||
* relax failure msg null check
|
||||
* add explicit failure through `expect().fail()`
|
||||
* clarified all `empty` functionality in README example
|
||||
* added docs for throwException fn/regexp signatures
|
||||
|
||||
0.1.2 / 2012-02-04
|
||||
==================
|
||||
|
||||
* Added regexp matching support for exceptions.
|
||||
* Added support for throwException callback.
|
||||
* Added `throwError` synonym to `throwException`.
|
||||
* Added object support for `.empty`.
|
||||
* Fixed `.a('object')` with nulls, and english error in error message.
|
||||
* Fix bug `indexOf` (IE). [hokaccha]
|
||||
* Fixed object property checking with `undefined` as value. [vovik]
|
||||
|
||||
0.1.1 / 2011-12-18
|
||||
==================
|
||||
|
||||
* Fixed typo
|
||||
|
||||
0.1.0 / 2011-12-18
|
||||
==================
|
||||
|
||||
* Initial import
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AnimationFrame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2BAAC;AAAD,CAAC,AArCD,CAA6C,yBAAW,GAqCvD;AArCY,oDAAoB"}
|
||||
@@ -0,0 +1,32 @@
|
||||
import { Subscriber } from '../Subscriber';
|
||||
import { Subscription } from '../Subscription';
|
||||
import { Observable } from '../Observable';
|
||||
import { Subject } from '../Subject';
|
||||
import { OperatorFunction } from '../types';
|
||||
export declare function groupBy<T, K>(keySelector: (value: T) => K): OperatorFunction<T, GroupedObservable<K, T>>;
|
||||
export declare function groupBy<T, K>(keySelector: (value: T) => K, elementSelector: void, durationSelector: (grouped: GroupedObservable<K, T>) => Observable<any>): OperatorFunction<T, GroupedObservable<K, T>>;
|
||||
export declare function groupBy<T, K, R>(keySelector: (value: T) => K, elementSelector?: (value: T) => R, durationSelector?: (grouped: GroupedObservable<K, R>) => Observable<any>): OperatorFunction<T, GroupedObservable<K, R>>;
|
||||
export declare function groupBy<T, K, R>(keySelector: (value: T) => K, elementSelector?: (value: T) => R, durationSelector?: (grouped: GroupedObservable<K, R>) => Observable<any>, subjectSelector?: () => Subject<R>): OperatorFunction<T, GroupedObservable<K, R>>;
|
||||
export interface RefCountSubscription {
|
||||
count: number;
|
||||
unsubscribe: () => void;
|
||||
closed: boolean;
|
||||
attemptedToUnsubscribe: boolean;
|
||||
}
|
||||
/**
|
||||
* An Observable representing values belonging to the same group represented by
|
||||
* a common key. The values emitted by a GroupedObservable come from the source
|
||||
* Observable. The common key is available as the field `key` on a
|
||||
* GroupedObservable instance.
|
||||
*
|
||||
* @class GroupedObservable<K, T>
|
||||
*/
|
||||
export declare class GroupedObservable<K, T> extends Observable<T> {
|
||||
key: K;
|
||||
private groupSubject;
|
||||
private refCountSubscription?;
|
||||
/** @deprecated Do not construct this type. Internal use only */
|
||||
constructor(key: K, groupSubject: Subject<T>, refCountSubscription?: RefCountSubscription);
|
||||
/** @deprecated This is an internal implementation detail, do not use. */
|
||||
_subscribe(subscriber: Subscriber<T>): Subscription;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"name": "@odit/lfk-client-js",
|
||||
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for native JS applications.",
|
||||
"version": "0.13.1",
|
||||
"license": "CC-BY-NC-SA-4.0",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://git.odit.services/lfk/lfk-client-js"
|
||||
},
|
||||
"keywords": [
|
||||
"odit",
|
||||
"odit.services",
|
||||
"lfk"
|
||||
],
|
||||
"author": "ODIT.Services",
|
||||
"files": [
|
||||
"dist",
|
||||
"package.json",
|
||||
"README.md"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "npm run build:prepare && npm run build:lib && npm run build:compile && npm run build:cleanup",
|
||||
"build:prepare": "rimraf ./lib ./dist",
|
||||
"build:lib": "openapi --input ./openapi.json --output ./lib --client fetch",
|
||||
"build:compile": "tsc",
|
||||
"build:cleanup": "rimraf ./lib"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://git.odit.services/lfk/lfk-client-js/issues"
|
||||
},
|
||||
"homepage": "https://git.odit.services/lfk/lfk-client-js/",
|
||||
"devDependencies": {
|
||||
"openapi-typescript-codegen": "0.7.0",
|
||||
"rimraf": "4.1.2",
|
||||
"typescript": "4.9.5"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user