1a12fb870b
- New /developers/ page with API docs, SDKs, pricing, use cases - OpenAPI 3.0 spec for Orders, Missions, Photos, Analytics - Case study: Glasskiosken i Flatenbadet — complete ROI analysis - Updated /order/ with recurring missions and frequency dropdown
13 lines
290 B
JavaScript
13 lines
290 B
JavaScript
'use strict';
|
|
const path = require('path');
|
|
|
|
module.exports = (childPath, parentPath) => {
|
|
const relation = path.relative(parentPath, childPath);
|
|
return Boolean(
|
|
relation &&
|
|
relation !== '..' &&
|
|
!relation.startsWith(`..${path.sep}`) &&
|
|
relation !== path.resolve(childPath)
|
|
);
|
|
};
|