Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16', '18']
node: ['18']

name: Node ${{ matrix.node }} build

Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
var _ = require('lodash');

module.exports = function extractDecoratedClassesProcessor(EXPORT_DOC_TYPES) {

// Add the "directive" docType into those that can be exported from a module
EXPORT_DOC_TYPES.push('directive', 'pipe');

return {
$runAfter: ['processing-docs'],
$runBefore: ['docs-processed'],
decoratorTypes: ['Directive', 'Component', 'Pipe'],
$process: function(docs) {
$process(docs) {
var decoratorTypes = this.decoratorTypes;

_.forEach(docs, function(doc) {

_.forEach(doc.decorators, function(decorator) {

if (decoratorTypes.indexOf(decorator.name) !== -1) {
doc.docType = decorator.name.toLowerCase();
doc[doc.docType + 'Options'] = decorator.argumentInfo[0];
for (const doc of docs) {
if (doc.decorators) {
for (const decorator of doc.decorators) {
if (decoratorTypes.indexOf(decorator.name) !== -1) {
doc.docType = decorator.name.toLowerCase();
doc[doc.docType + 'Options'] = decorator.argumentInfo[0];
}
}
});
});
}
}

return docs;
}
},
};
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
var _ = require('lodash');

/**
* @dgProcessor checkUnbalancedBackTicks
* @description
Expand All @@ -8,26 +6,23 @@ var _ = require('lodash');
* source content.
*/
module.exports = function checkUnbalancedBackTicks(log, createDocMessage) {

var BACKTICK_REGEX = /^ *```/gm;

return {
// $runAfter: ['checkAnchorLinksProcessor'],
$runAfter: ['inlineTagProcessor'],
$runBefore: ['writeFilesProcessor'],
$process: function(docs) {
_.forEach(docs, function(doc) {
$process(docs) {
for (const doc of docs) {
if (doc.renderedContent) {
var matches = doc.renderedContent.match(BACKTICK_REGEX);
if (matches && matches.length % 2 !== 0) {
doc.unbalancedBackTicks = true;
log.warn(createDocMessage(
'checkUnbalancedBackTicks processor: unbalanced backticks found in rendered content',
doc));
log.warn(createDocMessage('checkUnbalancedBackTicks processor: unbalanced backticks found in rendered content', doc));
log.warn(doc.renderedContent);
}
}
});
}
}
},
};
};
};
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
var _ = require('lodash');

module.exports = function createOverviewDump() {

return {
$runAfter: ['processing-docs'],
$runBefore: ['docs-processed'],
$process: function(docs) {
$process(docs) {
var overviewDoc = {
id: 'overview-dump',
aliases: ['overview-dump'],
path: 'overview-dump',
outputPath: 'overview-dump.html',
modules: []
modules: [],
};
_.forEach(docs, function(doc) {
for (const doc of docs) {
if (doc.docType === 'module') {
overviewDoc.modules.push(doc);
}
});
}
docs.push(overviewDoc);
}
},
};
};
};
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"@swc/core": "^1.2.128",
"@swc/helpers": "^0.3.2",
"@types/chai": "^4.2.11",
"@types/lodash": "4.14.102",
"@types/lodash": "^4.14.198",
"@types/mocha": "^10.0.1",
"@types/node": "^14.14.6",
"@types/shelljs": "^0.8.8",
Expand Down
7 changes: 3 additions & 4 deletions spec/Observable-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Observable, config, Subscription, Subscriber, Operator, NEVER, Subject,
import { map, filter, count, tap, combineLatestWith, concatWith, mergeWith, raceWith, zipWith, catchError, share} from 'rxjs/operators';
import { TestScheduler } from 'rxjs/testing';
import { observableMatcher } from './helpers/observableMatcher';
import { result } from 'lodash';

function expectFullObserver(val: any) {
expect(val).to.be.a('object');
Expand Down Expand Up @@ -643,7 +642,7 @@ describe('Observable', () => {
it('should allow any kind of piped function', () => {
const source = of('test');
const result = source.pipe(
source => source instanceof Observable,
source => source instanceof Observable,
isObservable => isObservable ? 'Well hello, there.' : 'Huh?'
);
expect(result).to.equal('Well hello, there.');
Expand Down Expand Up @@ -727,7 +726,7 @@ describe('Observable', () => {

subscriber.next(1);
subscriber.next(2);

// NOTE that we are NOT calling `subscriber.complete()` here.
// therefore the teardown below would never be called naturally
// by the observable unless it was unsubscribed.
Expand Down Expand Up @@ -948,4 +947,4 @@ describe('Observable', () => {
expect(state).to.equal('unsubscribed');
});
});
});
});
47 changes: 23 additions & 24 deletions spec/support/mocha.sauce.runner.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
var _ = require('lodash');
var mochaSauce = require('mocha-in-sauce');

var customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
version: '46'
version: '46',
},
sl_chrome_beta: {
base: 'SauceLabs',
browserName: 'chrome',
version: 'beta'
version: 'beta',
},
/*
sl_chrome_dev: {
Expand All @@ -21,7 +20,7 @@ var customLaunchers = {
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
version: '44'
version: '44',
},
/*sl_firefox_beta: {
base: 'SauceLabs',
Expand All @@ -37,92 +36,92 @@ var customLaunchers = {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.9',
version: '7'
version: '7',
},
sl_safari8: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.10',
version: '8'
version: '8',
},
sl_safari9: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.11',
version: '9.0'
version: '9.0',
},
sl_ios8: {
base: 'SauceLabs',
browserName: 'iphone',
platform: 'OS X 10.11',
version: '8.4'
version: '8.4',
},
sl_ios9: {
base: 'SauceLabs',
browserName: 'iphone',
platform: 'OS X 10.11',
version: '9.1'
version: '9.1',
},
sl_ie9: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 2008',
version: '9'
version: '9',
},
sl_ie10: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 2012',
version: '10'
version: '10',
},
sl_ie11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8.1',
version: '11'
version: '11',
},
sl_edge: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: '14.14393'
version: '14.14393',
},
sl_edge_13: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: '13.10586'
version: '13.10586',
},
sl_android_4_1: {
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
version: '4.1'
version: '4.1',
},
sl_android_4_2: {
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
version: '4.2'
version: '4.2',
},
sl_android_4_3: {
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
version: '4.3'
version: '4.3',
},
sl_android_4_4: {
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
version: '4.4'
version: '4.4',
},
sl_android5: {
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
version: '5.1'
}
version: '5.1',
},
};

var sauce = new mochaSauce({
Expand All @@ -134,15 +133,15 @@ var sauce = new mochaSauce({
port: 4445,
runSauceConnect: true, // run sauceConnect automatically

url: 'http://localhost:9876/spec/support/mocha-browser-runner.html'
url: 'http://localhost:9876/spec/support/mocha-browser-runner.html',
});

sauce.record(true, true);
sauce.concurrency(1);

_.each(customLaunchers, function (browser) {
for (const browser of customLaunchers) {
sauce.browser(browser);
});
}

sauce.on('start', function (browser) {
console.log(' started %s %s %s ...', browser.browserName, browser.version, browser.platform || '');
Expand All @@ -154,4 +153,4 @@ sauce.on('end', function (browser, res) {

sauce.start(function (err, res) {
console.log('-------------- done --------------');
});
});