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

farm-life

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

farm-life - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

12

dist/farm-life.js

@@ -55,3 +55,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/* 0 */
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {

@@ -85,4 +85,4 @@ 'use strict';

var type = opts.type;
var ensureAttached = opts.ensureAttached;
var type = opts.type,
ensureAttached = opts.ensureAttached;

@@ -146,5 +146,5 @@ var needleEscaped = (0, _escapeStringRegexp2.default)(needle);

/***/ },
/***/ }),
/* 1 */
/***/ function(module, exports) {
/***/ (function(module, exports) {

@@ -164,5 +164,5 @@ 'use strict';

/***/ }
/***/ })
/******/ ])
});
;

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

!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.farmLife=n():e.farmLife=n()}(this,function(){return function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,n,t){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0}),n.ensureAppended=n.ensurePrepended=n.append=n.prepend=void 0;var o=t(1),p=r(o),u=function(e){return null==e},c=function(e){return"string"==typeof e},i=function(e){return function(n,t,r){var o=[t,r];if(u(n)||!c(n))return"";if(o.some(u)||!o.every(c)||0===t.length||0===r.length)return n;var i=e.type,f=e.ensureAttached,d=(0,p["default"])(t),s=[];return function a(e){var n=e.search(d);if(n===-1)return s.length?s.concat(e).join(""):e;var o=n+t.length,p=e.slice(o),u=function(){return s.concat(e.slice(0,o))};if("prepend"===i){var c=n-r.length,l=0===n?s[s.length-1]:e.slice(c,n);if(f&&l===r)return s=u(),a(p);s=s.concat(e.slice(0,n)).concat([r]).concat(e.slice(n,o))}else{var y=o+r.length,h=e.slice(o,y);if(f&&h===r)return s=u(),a(p);s=u().concat([r])}return a(p)}(n)}};n.prepend=i({type:"prepend"}),n.append=i({type:"append"}),n.ensurePrepended=i({type:"prepend",ensureAttached:!0}),n.ensureAppended=i({type:"append",ensureAttached:!0})},function(e,n){"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}}])});
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.farmLife=n():e.farmLife=n()}(this,function(){return function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,n,t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.ensureAppended=n.ensurePrepended=n.append=n.prepend=void 0;var o=t(1),p=r(o),u=function(e){return null==e},c=function(e){return"string"==typeof e},i=function(e){return function(n,t,r){var o=[t,r];if(u(n)||!c(n))return"";if(o.some(u)||!o.every(c)||0===t.length||0===r.length)return n;var i=e.type,f=e.ensureAttached,d=(0,p.default)(t),s=[];return function e(n){var o=n.search(d);if(o===-1)return s.length?s.concat(n).join(""):n;var p=o+t.length,u=n.slice(p),c=function(){return s.concat(n.slice(0,p))};if("prepend"===i){var a=o-r.length,l=0===o?s[s.length-1]:n.slice(a,o);if(f&&l===r)return s=c(),e(u);s=s.concat(n.slice(0,o)).concat([r]).concat(n.slice(o,p))}else{var y=p+r.length,h=n.slice(p,y);if(f&&h===r)return s=c(),e(u);s=c().concat([r])}return e(u)}(n)}};n.prepend=i({type:"prepend"}),n.append=i({type:"append"}),n.ensurePrepended=i({type:"prepend",ensureAttached:!0}),n.ensureAppended=i({type:"append",ensureAttached:!0})},function(e,n){"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}}])});

@@ -28,4 +28,4 @@ 'use strict';

var type = opts.type;
var ensureAttached = opts.ensureAttached;
var type = opts.type,
ensureAttached = opts.ensureAttached;

@@ -32,0 +32,0 @@ var needleEscaped = (0, _escapeStringRegexp2.default)(needle);

{
"name": "farm-life",
"version": "0.0.2",
"version": "0.0.3",
"description": "Prepend/append string X (or ensure string X is prepended/appended) to each occurrence of string Y in string Z",

@@ -23,6 +23,6 @@ "main": "lib/index.js",

"cross-env": "^1.0.8",
"ghooks": "^1.3.2",
"husky": "^0.13.3",
"nyc": "^7.1.0",
"rimraf": "^2.5.3",
"standard": "^7.1.2",
"standard": "^10.0.2",
"webpack": "^1.13.1"

@@ -40,3 +40,5 @@ },

"build": "npm run clean && npm run build:commonjs && npm run build:umd && npm run build:umd:min",
"prepublish": "npm run check && npm run build"
"prepublish": "npm run check && npm run build",
"precommit": "standard",
"prepush": "npm test"
},

@@ -91,9 +93,3 @@ "repository": {

"check-coverage": true
},
"config": {
"ghooks": {
"pre-commit": "standard",
"pre-push": "npm test"
}
}
}
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