Socket
Socket
Sign inDemoInstall

upath

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.2.0

4

build/code/upath.js

@@ -5,3 +5,3 @@ /**

* A proxy to `path`, replacing `\` with `/` for all results & new methods to normalize & join keeping leading `./` and add, change, default, trim file extensions.
* Version 1.1.1 - Compiled on 2019-03-07 10:45:51
* Version 1.2.0 - Compiled on 2019-09-02 23:33:57
* Repository git://github.com/anodynos/upath

@@ -15,3 +15,3 @@ * Copyright(c) 2019 Angelos Pikoulas <agelos.pikoulas@gmail.com>

var VERSION = '1.1.1'; // injected by urequire-rc-inject-version
var VERSION = '1.2.0'; // injected by urequire-rc-inject-version

@@ -18,0 +18,0 @@ var extraFn, extraFunctions, isFunction, isString, isValidExt, name, path, propName, propValue, toUnix, upath, slice = [].slice, indexOf = [].indexOf || function (item) {

{
"name": "upath",
"description": "A proxy to `path`, replacing `\\` with `/` for all results & new methods to normalize & join keeping leading `./` and add, change, default, trim file extensions.",
"version": "1.1.2",
"version": "1.2.0",
"homepage": "http://github.com/anodynos/upath/",

@@ -50,8 +50,8 @@ "author": {

"grunt": "0.4.5",
"grunt-contrib-watch": "~1.0.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-urequire": "0.7.x",
"lodash": "^4.17.4",
"lodash": "^4.17.15",
"mocha": "~3.4.2",
"uberscore": "0.0.19",
"underscore.string": "~3.3.4",
"underscore.string": "^3.3.5",
"urequire": "0.7.0-beta.33",

@@ -58,0 +58,0 @@ "urequire-ab-specrunner": "^0.2.5",

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

# upath v1.1.2
# upath v1.2.0

@@ -23,5 +23,6 @@ [![Build Status](https://travis-ci.org/anodynos/upath.svg?branch=master)](https://travis-ci.org/anodynos/upath)

* upath has no runtime dependencies, except built-in `path` (as of 1.0.4)
* travis-ci tested in node versions 4 to 10
* travis-ci tested in node versions 4 to 12
## Why ?

@@ -210,3 +211,3 @@

`upath.removeExt(filename, ['min', '.dev'], 8)` --returns-->
`upath.trimExt(filename, ['min', '.dev'], 8)` --returns-->

@@ -232,4 +233,12 @@ ✓ `'my/trimedExt.txt'` ---> `'my/trimedExt'`

✓ `'notRemoved.txt'` ---> `'notRemoved.txt'`
It does not care about the length of exts.
`upath.removeExt(filename, '.longExt')` --returns-->
✓ `'removedExt.longExt'` ---> `'removedExt'`
✓ `'removedExt.txt.longExt'` ---> `'removedExt.txt'`
✓ `'notRemoved.txt'` ---> `'notRemoved.txt'`
#### `upath.changeExt(filename, [ext], [ignoreExts], [maxSize=7])`

@@ -302,4 +311,4 @@

✓ `'fileWith/defaultExt.longExt'` ---> `'fileWith/defaultExt.longExt'`
It is ignoring `.min` & `.dev` as extensions, and considers exts with up to 8 chars.

@@ -316,3 +325,3 @@

Copyright(c) 2014-2017 Angelos Pikoulas (agelos.pikoulas@gmail.com)
Copyright(c) 2014-2019 Angelos Pikoulas (agelos.pikoulas@gmail.com)

@@ -339,3 +348,1 @@ Permission is hereby granted, free of charge, to any person

OTHER DEALINGS IN THE SOFTWARE.
97 passing (33ms)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc